mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
16 lines
216 B
C
16 lines
216 B
C
|
// 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;
|
||
|
}
|