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 | } |
11 |
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 | } |
11 |