Debian Codegraph @

gcc/testsuite/c-c++-common/cpp/embed-6.c

raw
1 /* { dg-do preprocess } */
2 /* { dg-options "-M -nostdinc --embed-dir=${srcdir}/c-c++-common/cpp/embed-dir" } */
3
4 #if __has_embed ("embed-1.c")
5 #embed "magna-carta.txt" limit(1)
6 #embed "magna-carta.txt" limit(64)
7 #embed "magna-carta.txt" prefix(1 +)suffix(+ 42)if_empty()
8 #elif
9 #embed "non-existent-file"
10 #endif
11 #if 1 || __has_embed ("embed-2.c")
12 #embed <embed-1.inc>
13 #embed <embed-4.c>
14 #embed "embed-3.c"
15 #endif
16
17 /* { dg-final { scan-file embed-6.i "(^|\\n)embed-6.o:" } }
18 { dg-final { scan-file embed-6.i "embed-6.c" } }
19 { dg-final { scan-file embed-6.i "c-c..-common/cpp/embed-dir/magna-carta.txt" } }
20 { dg-final { scan-file embed-6.i "c-c..-common/cpp/embed-dir/embed-1.inc" } }
21 { dg-final { scan-file embed-6.i "c-c..-common/cpp/embed-dir/embed-4.c" } }
22 { dg-final { scan-file embed-6.i "(\[^/]|cpp/)embed-3.c" } } */
23 /* { dg-final { scan-file-not embed-6.i "embed-1.c" } }
24 { dg-final { scan-file-not embed-6.i "embed-2.c" } } */