blob: e3a19028843b761e3de03fd4de8c6c42c5c1f7ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Test BTF generation for union type. */
/* { dg-do compile ) */
/* { dg-options "-O0 -gbtf -dA" } */
/* One union type with 4 members */
/* { dg-final { scan-assembler-times "\[\t \]0x5000004\[\t \]+\[^\n\]*btt_info" 1 } } */
/* { dg-final { scan-assembler-times "MEMBER" 4 } } */
union onion
{
int redness;
char *name;
unsigned short freshness;
unsigned short flavor;
} my_onion;
|