New testcase.

llvm-svn: 19873
This commit is contained in:
Chris Lattner 2005-01-28 19:08:32 +00:00
parent 54903b68f2
commit e3aa4c01d5
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep 'ret bool false'
%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
}