summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/pr49871.c
blob: c1a58c4bd1aa5752f883ddc53e22010abaa3350d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR debug/49871 */
/* { dg-do compile } */
/* { dg-options "-gdwarf-3 -dA -fno-merge-debug-strings" } */

struct S
{
  char a[1 << 16];
  int b;
} s;

/* { dg-final { scan-assembler "\\(DW_AT_data_member_location\\)\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\\(DW_FORM_udata\\)" } } */
/* { dg-final { scan-assembler-not "\\(DW_AT_data_member_location\\)\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*\\(DW_FORM_data\[48\]\\)" } } */