URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors10.C] - Rev 516
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;
};