aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/atomic.c
blob: 187e69548dfcbf9969a095dc44189e91bd55dd26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-std=c11 -gdwarf-5 -dA" } */

struct Atomics
{
  _Atomic(int) counter;
  struct Pointer
  {
    _Atomic volatile char *p;
  } p;
};

struct Atomics a;

/* { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_atomic_type" 2 } } */