URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors11.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed constructors
// ctor file
// Message-Id: <9302081631.AA14744@tera.com>
// From: rrh@tera.com (Robert R. Henry)
// Date: Mon, 8 Feb 93 08:31:39 PST
extern "C" int printf (const char *, ...);
class A{
public:
inline A(int x){printf("constructing A with %d\n", x);}
};
class B:public A{ // { dg-error "" } non-default constructor
private:
public:
};
int main()
{
B(10);// { dg-error "" } B doesn't have a constructor taking int
}
Go to most recent revision | Compare with Previous | Blame | View Log