2 // { dg-require-named-sections "" }
7 struct S
{} // { dg-warning ".section. attribute does not apply to types" }
9 @attribute("section", 123)
10 int f1(); // { dg-error "section attribute argument not a string constant" }
12 int f2(@section("param") int a
) // { dg-error "section attribute not allowed for .a." }
14 @section("local") int v
; // { dg-error "section attribute cannot be specified for local variables" }
18 @section("c1") void conflict();
19 @section("c2") void conflict(); // { dg-error "section of .conflict. conflicts with previous declaration" }
23 void conflict2(); // { dg-error "section of .conflict2. conflicts with previous declaration" }