brintos

brintos / llvm-project-archived public Read only

0
0
Text · 328 B · 4baf902 Raw
17 lines · c
1// RUN: %clang_cc1 < %s -emit-llvm | FileCheck %s2 3// The two decls for 'a' should merge into one llvm GlobalVariable.4 5struct s { int x; };6static struct s a;7 8struct s *ap1 = &a;9 10static struct s a =  {11    1012};13 14// CHECK-NOT: internal global15// CHECK: @a = internal global %struct.s { i32 10 }16// CHECK-NOT: internal-global17