2 // { dg-skip-if "only works for ELF targets" { *-*-darwin* *-*-aix* } }
7 struct S
{} // { dg-warning ".symver. attribute does not apply to types" }
9 @attribute("symver", 123)
10 int f1(); // { dg-error ".symver. attribute argument not a string constant" }
13 int f2() // { dg-error "symver attribute argument must have format .name@nodename'" }
14 { // { dg-error ".symver. attribute argument .format. must contain one or two .@." "" { target *-*-* } .-1 }
18 int f3(@symver("param@VER_1") int param
) // { dg-warning ".symver. attribute only applies to functions and variables" }
23 @symver("extern@VER_2")
24 extern int f4(); // { dg-error "symbol needs to be defined to have a version" }