Debian Codegraph @

gcc/testsuite/g++.dg/cpp/embed-2.C

raw
1 // { dg-do compile }
2 // { dg-options "-pedantic -Wall -W" }
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' before C\\\+\\\+26 is a GCC extension" "" { target c++23_down } }
10 ;
11 int b =
12 (__extension__
13 #embed __FILE__ limit (1) // { dg-warning "'#embed' before C\\\+\\\+26 is a GCC extension" "" { target c++23_down } }
14 );