blob: 482c5aa0cc7eb7159e7c9a44fbefe33945ea27ec [file] [log] [blame]
Reid Spencer9aafdcf2007-04-15 09:21:47 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
Chris Lattneredcee6f2005-05-09 21:21:10 +00002declare void %bar(int)
3
4void %test(bool %P, int* %Q) {
5 br bool %P, label %T, label %F
6T:
7 store int 1, int* %Q
8 %A = load int* %Q
9 call void %bar(int %A)
10 ret void
11F:
12 store int 1, int* %Q
13 %B = load int* %Q
14 call void %bar(int %B)
15 ret void
16}
17