Add -gno-strict-dwarf to dg-options in various btf enum tests
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / btf / btf-enum-small.c
blobccc92c92ba9a216b9df9aef2a00f127a8df81de0
1 /* Test BTF generation for small enums. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -gbtf -gno-strict-dwarf -dA" } */
6 /* { dg-final { scan-assembler-not "bte_value_lo32" } } */
7 /* { dg-final { scan-assembler-not "bte_value_hi32" } } */
8 /* { dg-final { scan-assembler-times "\[\t \]0x6000002\[\t \]+\[^\n\]*btt_info" 1 } } */
9 /* { dg-final { scan-assembler-times " ENUM_CONST 'eSMALL' idx=0" 1 } } */
10 /* { dg-final { scan-assembler-times " ENUM_CONST 'eSMALLY' idx=1" 1 } } */
11 /* { dg-final { scan-assembler-times "ascii \"eSMALL.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
12 /* { dg-final { scan-assembler-times "ascii \"eSMALLY.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
13 /* { dg-final { scan-assembler-times "bte_value" 2 } } */
15 enum smalled_enum
17 eSMALL,
18 eSMALLY,
19 } __attribute__((mode(byte)));
21 struct root_struct {
22 enum smalled_enum esmall;
25 enum smalled_enum
26 foo(struct root_struct *root) {
27 return root->esmall;