Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-75.C
blobc2a328c7c7ffc09b9053f03fcf083091e25239a4
1 // PR c++/101582
2 // { dg-do compile }
3 // { dg-options "-pedantic -Wno-extra-semi" }
6 [[]] [[]] [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
7 [[foobar]];     // { dg-warning "attribute ignored" }
8 // { dg-warning "attributes only available with" "" { target c++98_only } .-1 }
10 extern "C" ;
11 extern "C" [[]];        // { dg-warning "attributes only available with" "" { target c++98_only } }
12 extern "C" extern "C" ;
13 extern "C" extern "C" [[]][[]][[]];     // { dg-warning "attributes only available with" "" { target c++98_only } }
14 __extension__ ;
15 __extension__ [[]];
16 __extension__ __extension__ ;
17 __extension__ __extension__ [[]][[]];
19 namespace N {
22 [[]] [[]] [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
23 [[foobar]];     // { dg-warning "attribute ignored" }
24 // { dg-warning "attributes only available with" "" { target c++98_only } .-1 }
26 extern "C" ;
27 extern "C" [[]];        // { dg-warning "attributes only available with" "" { target c++98_only } }
28 extern "C" extern "C" ;
29 extern "C" extern "C" [[]][[]][[]];     // { dg-warning "attributes only available with" "" { target c++98_only } }
30 __extension__ ;
31 __extension__ [[]];
32 __extension__ __extension__ ;
33 __extension__ __extension__ [[]][[]];