summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr19345.c
blob: 40c6de4d8368fd3cff3365841fb7d3a130e4661f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* We shouldn't crash trying to produce the inlined structure type die debug info.  */
/* { dg-do compile } */
/* { dg-options "-O1 -g" } */
inline void bar(char a[], unsigned int l)
{
  asm volatile ("" :: "m" ( *(struct {char x[l]; } *)a));
}

void foo(void)
{
  bar (0, 0);
}