Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / semicolon14.C
blobac2b985f3a3c7f9469fb76c4dce7779d187a05d4
1 // DR 569, Spurious semicolons at namespace scope should be allowed
2 // PR c++/113760
3 // { dg-options "-pedantic-errors -Wno-extra-semi" }
5 // C++11 allows extra semicolons at namespace scope.
6 struct S {
7   void foo();
8 };
11 void S::foo () {
15 namespace N {
19 void f();
22 void
23 f ()
28 int x;