Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s |
2 | |||||
3 | struct X { int *XX; int Y;}; | ||||
4 | |||||
5 | void foo() { | ||||
6 | // CHECK: @foo.nate = internal global i32 0 | ||||
7 | static int nate = 0; | ||||
8 | struct X bob = { &nate, 14 }; | ||||
9 | bar(&bob); | ||||
10 | } |