mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Testcase for r128619 (PR9571).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
312babc93f
commit
b38aa9af72
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…
Reference in New Issue
Block a user