forked from OSchip/llvm-project
parent
65da2db736
commit
1299f36af1
|
@ -1,6 +1,4 @@
|
||||||
// RUN: clang-cc -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t
|
// RUN: clang-cc -triple i386-unknown-unknown -O3 -emit-llvm -o - %s | FileCheck %s
|
||||||
// RUN: grep "ret i32" %t | count 1
|
|
||||||
// RUN: grep "ret i32 1" %t | count 1
|
|
||||||
// PR2001
|
// PR2001
|
||||||
|
|
||||||
/* Test that the result of the assignment properly uses the value *in
|
/* Test that the result of the assignment properly uses the value *in
|
||||||
|
@ -13,5 +11,6 @@ static int foo(int i) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int bar() {
|
int bar() {
|
||||||
|
// CHECK: ret i32 1
|
||||||
return foo(-5) == -1;
|
return foo(-5) == -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue