diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/defctor.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.jason/defctor.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/defctor.C b/gcc/testsuite/g++.old-deja/g++.jason/defctor.C new file mode 100755 index 0000000..68cf25c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/defctor.C @@ -0,0 +1,15 @@ +// 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); +} |