summaryrefslogtreecommitdiff
path: root/test/FrontendC/2010-06-28-DbgLocalVar.c
blob: e5df8856c0ddcd81b4557bd74d12024a74c1da9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgcc -S -O2 -g %s -o - | llc -O2 -o %t.s 
// RUN: grep DW_TAG_structure_type %t.s | count 2
// Radar 8122864

// Code is not generated for function foo, but preserve type information of
// local variable xyz.
static foo() {
  struct X { int a; int b; } xyz;
}

int bar() {
  foo();
  return 1;
}