Eric Christopher | cd3d88c | 2011-07-26 01:24:10 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s |
Eric Christopher | a11d129 | 2011-07-26 00:57:50 +0000 | [diff] [blame] | 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)) | ||||
Eric Christopher | cd3d88c | 2011-07-26 01:24:10 +0000 | [diff] [blame] | 12 | // CHECK: icmp ne %struct.t* |
Eric Christopher | a11d129 | 2011-07-26 00:57:50 +0000 | [diff] [blame] | 13 | return 0; |
14 | return cfun->x; | ||||
15 | } |