Debian Codegraph @

gcc/testsuite/gcc.target/bpf/section-name-quoting-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "" } */
3
4 /* Make sure that section names that contain characters not in the set
5 [0-9a-zA-Z_] get quoted for the assembler. */
6
7 __attribute__((section ("uretprobe//proc/self/exe:trigger_func2")))
8 void
9 foo ()
10 {
11 }
12
13 __attribute__((section ("trigger_func3")))
14 void
15 bar ()
16 {
17 }
18
19 /* { dg-final { scan-assembler {\.section\t"uretprobe//proc/self/exe:trigger_func2"} } } */
20 /* { dg-final { scan-assembler {\.section\ttrigger_func3} } } */