2007-04-15 07:04:54 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
|
|
|
|
; RUN: not grep {ret bool false}
|
2005-01-29 03:08:32 +08:00
|
|
|
|
|
|
|
%b = external global [2 x { }]
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
bool %f() {
|
|
|
|
; tmp.2 -> true, not false.
|
|
|
|
%tmp.2 = seteq { }* getelementptr ([2 x { }]* %b, int 0, int 0),
|
|
|
|
getelementptr ([2 x { }]* %b, int 0, int 1)
|
|
|
|
ret bool %tmp.2
|
|
|
|
}
|