From: reichelt Date: Sat, 17 Sep 2005 22:05:39 +0000 (+0000) Subject: PR c++/18368 X-Git-Tag: upstream/4.9.2~58594 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=543fdbb2bf7e512e6c9bbddb8be0d8553a50b965;p=platform%2Fupstream%2Flinaro-gcc.git PR c++/18368 * g++.dg/other/semicolon.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104378 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 46a639a..b69d38e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-09-17 Volker Reichelt + + PR c++/18368 + * g++.dg/other/semicolon.C: New test. + 2005-09-16 Joseph S. Myers * 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 index 0000000..6bc3d95 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/semicolon.C @@ -0,0 +1,9 @@ +// PR c++/18368 +// Origin: Chris Lattner +// { 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 }