Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-enum-2.c

raw
1 /* CTF generation for enums.
2
3 CTF represents enum values with an int32_t. For enum values not
4 representable with int32_t data type, the compiler skips adding CTF for
5 them. This will be fixed soon in the CTF format.
6 TBD_CTF_REPRESENTATION_LIMIT.
7
8 In this testcase, CTF for enumerator GFS_MONOTONIC will not be generated. */
9
10 /* { dg-do compile } */
11 /* { dg-options "-O0 -gctf -dA" } */
12
13 /* { dg-final { scan-assembler-times "ascii \"GFS_MONOTONIC.0\"\[\t \]+\[^\n\]*ctf_string" 0 } } */
14 /* { dg-final { scan-assembler-times "ascii \"GFS_RUNTIME.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
15 /* { dg-final { scan-assembler-times "ascii \"GFS_STATIC.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
16 /* { dg-final { scan-assembler-times "cte_value" 2} } */
17
18
19 enum gomp_schedule_type
20 {
21 GFS_RUNTIME,
22 GFS_STATIC,
23 GFS_MONOTONIC = 0x80000000U
24 };
25
26 enum gomp_schedule_type gsch_type;
27