1 // DR 569, Spurious semicolons at namespace scope should be allowed
3 // { dg-options "-pedantic-errors -Wno-error=extra-semi" }
5 // C++11 allows extra semicolons at namespace scope.
9 ; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
12 }; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
13 ; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
16 }; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
17 ; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
20 ; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
25 }; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
26 ; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }
29 ; // { dg-warning "extra .;. outside of a function" "" { target c++98_only } }