mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 21:26:04 +00:00

Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
16 lines
231 B
C
16 lines
231 B
C
// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s
|
|
// PR9571
|
|
|
|
struct t {
|
|
int x;
|
|
};
|
|
|
|
extern struct t *cfun;
|
|
|
|
int f(void) {
|
|
if (!(cfun + 0))
|
|
// CHECK: icmp ne ptr
|
|
return 0;
|
|
return cfun->x;
|
|
}
|