llvm-6502/test/FrontendC/2011-03-31-ArrayRefFolding.c

16 lines
216 B
C
Raw Normal View History

// RUN: %llvmgcc -S -o - -m32 -Os %s | FileCheck %s
// PR9571
struct t {
int x;
};
extern struct t *cfun;
int f(void) {
if (!(cfun + 0))
// CHECK: icmp eq %struct.t* %0, null
return 0;
return cfun->x;
}