Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr46534.c

raw
1 /* PR middle-end/46534 */
2
3 extern int printf (const char *, ...);
4
5 #define S1 " "
6 #define S2 S1 S1 S1 S1 S1 S1 S1 S1 S1 S1
7 #define S3 S2 S2 S2 S2 S2 S2 S2 S2 S2 S2
8 #define S4 S3 S3 S3 S3 S3 S3 S3 S3 S3 S3
9 #define S5 S4 S4 S4 S4 S4 S4 S4 S4 S4 S4
10 #define S6 S5 S5 S5 S5 S5 S5 S5 S5 S5 S5
11 #define S7 S6 S6 S6 S6 S6 S6 S6 S6 S6 S6
12
13 void
14 foo (void)
15 {
16 printf (S7 "\n"); /* { dg-error "size of string literal is too large" "" { target { ! size32plus } } } */
17 }