URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors10.C] - Rev 699
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed constructors
// ctor file
// Message-Id: <9302052351.AA10789@harvey>
// From: greg@qualcomm.com (Greg Noel)
// Subject: bug019.cc
// Date: Fri, 5 Feb 93 15:51:42 -0800
#include <iostream>
class Klasse
{
class Err : public std::ostream
{
public:
Err(void) : std::ostream(NULL) { }
~Err(void) { }
};
public:
//template<class T> Err& operator << (const T x) { return Err() << x; }
Err& operator << (const char *x) { return Err() << x; }// { dg-error "" } .*
private:
char x;
};