aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-str-table-1.c
blob: 0a0f1f033f726149b6c2b2a37c835855ee5ae339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* CTF String Table as generated by the compiler is expected to have only a
   single empty string.  Just an optimization by the compiler, it is not
   mandated by the CTF format.  */

/* { dg-do compile )  */
/* { dg-options "-O0 -gctf -dA" } */
/* { dg-final { scan-assembler-times "ascii \".0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */

union wait
{
  int w_status;
  struct
    {
      int __w_termsig;
      int __w_coredump;
    } __wait_terminated;
   struct
    {
      int __w_stopval;
      int __w_stopsig;
    } __wait_stopped;
};

typedef union { union wait * __uptr; int * iptr; } __WAIT_STATUS;

__WAIT_STATUS waitstatus;