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++.jason/] [defctor.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
// Bug: g++ doesn't generate default constructor.
class A {
public:
int i;
};
extern "C" int printf(const char *, ...);
int main () {
A a;
a.i = 1;
A b (a);
printf("%d\n",b.i);
}