Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-function-pointers-2.c

raw
1 /* CTF generation of function pointers.
2
3 In this testcase, there is a single function type expected for two
4 different function pointer types. */
5
6 /* { dg-do compile } */
7 /* { dg-options "-O0 -gctf -dA -std=gnu17" } */
8 /* { dg-final { scan-assembler-times "\[\t \]0x16000001\[\t \]+\[^\n\]*ctt_info" 1 } } */
9 /* { dg-final { scan-assembler-times "ascii \"rcu_callback_t.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
10 /* { dg-final { scan-assembler-times "ascii \"func.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
11
12 struct callback_head {
13 struct callback_head *next;
14 void (*func) (struct callback_head *head);
15 } __attribute__ (( aligned (sizeof (void *))));
16 #define rcu_head callback_head
17
18 struct callback_head chead;
19
20 typedef void (*rcu_callback_t) (struct rcu_head *head);
21
22 rcu_callback_t rcb;