blob: 31c0a681a4dce6d17dffecbb7c9cbda14cbdcea1 [file] [log] [blame]
Eric Christophercd3d88c2011-07-26 01:24:10 +00001// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s
Eric Christophera11d1292011-07-26 00:57:50 +00002// PR9571
3
4struct t {
5 int x;
6};
7
8extern struct t *cfun;
9
10int f(void) {
11 if (!(cfun + 0))
Eric Christophercd3d88c2011-07-26 01:24:10 +000012 // CHECK: icmp ne %struct.t*
Eric Christophera11d1292011-07-26 00:57:50 +000013 return 0;
14 return cfun->x;
15}