diff options
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/ctor1.C | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog index 9320e6f..a3b040a 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog @@ -1,5 +1,7 @@ 1999-07-03 Alexandre Oliva <oliva@dcc.unicamp.br> + * ctor1.C: New test. + * template3.C: New test. 1999-07-02 Alexandre Oliva <oliva@dcc.unicamp.br> diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ctor1.C b/gcc/testsuite/g++.old-deja/g++.oliva/ctor1.C new file mode 100644 index 0000000..ee37351 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ctor1.C @@ -0,0 +1,19 @@ +// Build don't link: + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva <oliva@dcc.unicamp.br> +// based on bug report by Harri Porten <porten@tu-harburg.de> + +struct A { + A() : x; // ERROR - missing body +}; + +struct B { + void m() {} +}; + +struct C { + // The error message below says it is within A::B::m()! + void n() {} // gets bogus error - XFAIL *-*-* +}; |