repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed some bugs.
[llvm/zpu.git]
/
test
/
FrontendC
/
2010-06-28-DbgLocalVar.c
blob
e5df8856c0ddcd81b4557bd74d12024a74c1da9b
1
// RUN: %llvmgcc -S -O2 -g %s -o - | llc -O2 -o %t.s
2
// RUN: grep DW_TAG_structure_type %t.s | count 2
3
// Radar 8122864
4
5
// Code is not generated for function foo, but preserve type information of
6
// local variable xyz.
7
static
foo
() {
8
struct
X
{
int
a
;
int
b
; }
xyz
;
9
}
10
11
int
bar
() {
12
foo
();
13
return
1
;
14
}