PR c++/18368
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Sep 2005 22:05:39 +0000 (22:05 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Sep 2005 22:05:39 +0000 (22:05 +0000)
* g++.dg/other/semicolon.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104378 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/semicolon.C [new file with mode: 0644]

index 46a639a..b69d38e 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/18368
+       * g++.dg/other/semicolon.C: New test.
+
 2005-09-16  Joseph S. Myers  <joseph@codesourcery.com>
 
        * g++.dg/warn/huge-val1.C: Disable tests on values of HUGE_VAL,
diff --git a/gcc/testsuite/g++.dg/other/semicolon.C b/gcc/testsuite/g++.dg/other/semicolon.C
new file mode 100644 (file)
index 0000000..6bc3d95
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/18368
+// Origin: Chris Lattner <sabre@nondot.org>
+// { dg-do compile }
+
+struct A
+{
+  struct B { int i; }
+  void foo();   // { dg-error "two or more|return type" }
+};              // { dg-error "semicolon is missing" "" { target *-*-* } 8 }