1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/FrontendC/2010-06-28-DbgLocalVar.c
Devang Patel dffbf36af7 Preserve deleted function's local variables' debug info.
Radar 8122864.

llvm-svn: 107027
2010-06-28 18:25:03 +00:00

15 lines
308 B
C

// 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;
}