forked from OSchip/llvm-project
Rework this slightly to work for optimized compilers and remove the
optimization from the test. llvm-svn: 136039
This commit is contained in:
parent
6f2a0d7234
commit
2da8b9c652
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin -Os %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s
|
||||
// PR9571
|
||||
|
||||
struct t {
|
||||
|
@ -9,7 +9,7 @@ extern struct t *cfun;
|
|||
|
||||
int f(void) {
|
||||
if (!(cfun + 0))
|
||||
// CHECK: icmp eq %struct.t* %tmp, null
|
||||
// CHECK: icmp ne %struct.t*
|
||||
return 0;
|
||||
return cfun->x;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue