blob: bac80aa02ffb015b6ca11a364ddcbe2da594550e [file] [log] [blame]
// PR c++/101582
// { dg-do compile }
// { dg-options "" }
;
[[]] [[]] [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
[[foobar]]; // { dg-warning "attribute ignored" }
// { dg-warning "attributes only available with" "" { target c++98_only } .-1 }
extern "C" ;
extern "C" [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
extern "C" extern "C" ;
extern "C" extern "C" [[]][[]][[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
__extension__ ;
__extension__ [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
__extension__ __extension__ ;
__extension__ __extension__ [[]][[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
namespace N {
;
[[]] [[]] [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
[[foobar]]; // { dg-warning "attribute ignored" }
// { dg-warning "attributes only available with" "" { target c++98_only } .-1 }
extern "C" ;
extern "C" [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
extern "C" extern "C" ;
extern "C" extern "C" [[]][[]][[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
__extension__ ;
__extension__ [[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
__extension__ __extension__ ;
__extension__ __extension__ [[]][[]]; // { dg-warning "attributes only available with" "" { target c++98_only } }
}