blob: ddc368aa10cc42c3586b7035755cd067a00c12d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do compile }
// { dg-options "-pedantic -Wall -W" }
#if __has_embed (__FILE__ limit (1)) != 1
#error "__has_embed failed"
#endif
int a =
#embed __FILE__ limit (1) // { dg-warning "'#embed' before C\\\+\\\+26 is a GCC extension" "" { target c++23_down } }
;
int b =
(__extension__
#embed __FILE__ limit (1) // { dg-warning "'#embed' before C\\\+\\\+26 is a GCC extension" "" { target c++23_down } }
);
|