summaryrefslogtreecommitdiff
path: root/test/FrontendC/2007-12-VarArrayDebug.c
blob: cd6cfdf4672b93051bc8f87bafd6a21f0e954553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %llvmgcc -S -g -O %s -o - | llvm-as | llc
// RUN: %llvmgcc -S -g %s -o - | llvm-as | llc

extern void foo (void);

static
void baz (int i)
{
  foo ();
  typedef char A[i];
  struct { A b; } *x = 0;
}

void
bar (i)
{
  baz (i);
}