* ctor1.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 3 Jul 1999 11:18:17 +0000 (11:18 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 3 Jul 1999 11:18:17 +0000 (11:18 +0000)
From-SVN: r27934

gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
gcc/testsuite/g++.old-deja/g++.oliva/ctor1.C [new file with mode: 0644]

index 9320e6f458506ca4f1d83bec664cb1726d1f00cf..a3b040ac02d52f6234f88882cdf4d4d5bfea8ecb 100644 (file)
@@ -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 (file)
index 0000000..ee37351
--- /dev/null
@@ -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 *-*-*
+};