☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGen
/
2011-03-31-ArrayRefFolding.c
☽
☼
clang/test/CodeGen/2011-03-31-ArrayRefFolding.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s
2
// PR9571
3
4
struct t {
5
int x;
6
};
7
8
extern struct t *cfun;
9
10
int f(void) {
11
if (!(cfun + 0))
12
// CHECK: icmp ne ptr
13
return 0;
14
return cfun->x;
15
}