gcc/testsuite/gcc.dg/debug/ctf/ctf-variables-1.c
raw| 1 | /* CTF generation for global variables. |
| 2 | |
| 3 | In this testcase, 7 records in the variable info section are expected. */ |
| 4 | |
| 5 | /* { dg-do compile } */ |
| 6 | /* { dg-options "-O0 -gctf -dA" } */ |
| 7 | |
| 8 | /* { dg-final { scan-assembler-times "ctv_name" 7 } } */ |
| 9 | |
| 10 | float var1; |
| 11 | double var2; |
| 12 | long double var3; |
| 13 | |
| 14 | char ascii = 'a'; |
| 15 | |
| 16 | int a = 33; |
| 17 | int a1[2] = {22, 33}; |
| 18 | |
| 19 | struct d |
| 20 | { |
| 21 | int d1; |
| 22 | int d2; |
| 23 | }; |
| 24 | |
| 25 | struct d d_instance; |