mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 02:03:11 +00:00
Testcase for r128619 (PR9571).
llvm-svn: 128620
This commit is contained in:
parent
e72dfb1c45
commit
7089d4d507
15
test/FrontendC/2011-03-31-ArrayRefFolding.c
Normal file
15
test/FrontendC/2011-03-31-ArrayRefFolding.c
Normal file
@ -0,0 +1,15 @@
|
||||
// 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user