1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 < %s -emit-llvm | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc // The two decls for 'a' should merge into one llvm GlobalVariable. 4f4a2713aSLionel Sambuc 5f4a2713aSLionel Sambuc struct s { int x; }; 6f4a2713aSLionel Sambuc static struct s a; 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc struct s *ap1 = &a; 9f4a2713aSLionel Sambuc 10f4a2713aSLionel Sambuc static struct s a = { 11f4a2713aSLionel Sambuc 10 12f4a2713aSLionel Sambuc }; 13f4a2713aSLionel Sambuc 14*0a6a1f1dSLionel Sambuc // CHECK-NOT: internal global 15*0a6a1f1dSLionel Sambuc // CHECK: @a = internal global %struct.s { i32 10 } 16*0a6a1f1dSLionel Sambuc // CHECK-NOT: internal-global 17