repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC
/
2002-03-14-BrokenSSA.c
blob
9dc674aea27f63c27e3964ae8d4b9d9d240d424a
1
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
2
3
/* This code used to break GCC's SSA computation code. It would create
4
uses of B & C that are not dominated by their definitions. See:
5
http://gcc.gnu.org/ml/gcc/2002-03/msg00697.html
6
*/
7
int
bar
();
8
int
foo
()
9
{
10
int
a
,
b
,
c
;
11
12
a
=
b
+
c
;
13
b
=
bar
();
14
c
=
bar
();
15
return
a
+
b
+
c
;
16
}
17