1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
14 extern struct cpu cpu
;
19 // CHECK: @svars1 = {{(dso_local )?}}global [1 x %struct.svar] [%struct.svar { ptr @cpu }]
20 struct svar svars1
[] =
24 // CHECK: @svars2 = {{(dso_local )?}}global [1 x %struct.svar] [%struct.svar { ptr getelementptr (i8, ptr @cpu, i64 1) }]
25 struct svar svars2
[] =
27 { &((cpu
.pc
).b
[0][1]) }
29 // CHECK: @svars3 = {{(dso_local )?}}global [1 x %struct.svar] [%struct.svar { ptr getelementptr (i8, ptr @cpu, i64 2) }]
30 struct svar svars3
[] =
34 // CHECK: @svars4 = {{(dso_local )?}}global [1 x %struct.svar] [%struct.svar { ptr getelementptr (i8, ptr @cpu, i64 3) }]
35 struct svar svars4
[] =
37 { &((cpu
.pc
).b
[1][1]) }