Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/embed-17.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=c23 -Wc11-c23-compat" } */
3
4 #if __has_embed (__FILE__ limit (1)) != 1
5 #error "__has_embed failed"
6 #endif
7
8 int a =
9 #embed __FILE__ limit (1) /* { dg-warning "'#embed' is a C23 feature" } */
10 ;
11 int b =
12 (__extension__
13 #embed __FILE__ limit (1)
14 );