Debian Codegraph @

gcc/testsuite/gcc.dg/c23-attr-syntax-4.c

raw
1 /* Test C23 attribute syntax: diagnosed with -Wc11-c23-compat. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors -Wc11-c23-compat" } */
4
5 [[]]; /* { dg-warning "attributes before C23" } */
6
7 void f [[]] (void); /* { dg-warning "attributes before C23" } */