blob: 3fc5e5af31d102ca794add4476fca0004333db18 [file] [log] [blame]
Eric Christophere6051002011-07-26 00:57:50 +00001// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin -Os %s | FileCheck %s
2// PR9571
3
4struct t {
5 int x;
6};
7
8extern struct t *cfun;
9
10int f(void) {
11 if (!(cfun + 0))
12 // CHECK: icmp eq %struct.t* %tmp, null
13 return 0;
14 return cfun->x;
15}