Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
182a9fd39f7a1faadef69a65818f98531de19a6d
/
.
/
clang
/
test
/
CodeGen
/
merge-statics.c
blob: 56fd7d4bb6a933e7ff53d8f5c50719bfd5ce7a8e [
file
] [
log
] [
blame
]
// RUN: clang %s -emit-llvm | grep internal | count 1
// The two decls for 'a' should merge into one llvm GlobalVariable.
struct
s
{
int
x
;
};
static
struct
s a
;
struct
s
*
ap1
=
&
a
;
static
struct
s a
=
{
10
};