Rework this slightly to work for optimized compilers and remove the

optimization from the test.

llvm-svn: 136039
This commit is contained in:
Eric Christopher 2011-07-26 01:24:10 +00:00
parent 6f2a0d7234
commit 2da8b9c652
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}