PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / Wattributes-5.c
blob34483391e6df23150ed002da764c7d9374651f24
1 /* { dg-do compile } */
2 /* { dg-options -Wattributes } */
4 void __attribute__((_foobar)) foo() { } /* { dg-warning "attribute directive ignored" } */
5 void __attribute__((_xformat__)) foo2() { } /* { dg-warning "attribute directive ignored" } */
6 void __attribute__((xformat__)) foo3() { } /* { dg-warning "attribute directive ignored" } */
7 void __attribute__((__xformat)) foo4() { } /* { dg-warning "attribute directive ignored" } */
8 void __attribute__((_)) foo5() { } /* { dg-warning "attribute directive ignored" } */
9 void __attribute__((_)) foo6() { } /* { dg-warning "attribute directive ignored" } */
10 void __attribute__((__)) foo7() { } /* { dg-warning "attribute directive ignored" } */
11 void __attribute__((___)) foo8() { } /* { dg-warning "attribute directive ignored" } */
12 void __attribute__((____)) foo9() { } /* { dg-warning "attribute directive ignored" } */
13 void __attribute__((_____)) foo10() { } /* { dg-warning "attribute directive ignored" } */