repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
merge-statics.c
blob
4baf902488c531edc2599a4c6bb49f2fc8822f62
1
// RUN: %clang_cc1 < %s -emit-llvm | FileCheck %s
2
3
// The two decls for 'a' should merge into one llvm GlobalVariable.
4
5
struct
s
{
int
x
; };
6
static struct
s a
;
7
8
struct
s
*
ap1
= &
a
;
9
10
static struct
s a
= {
11
10
12
};
13
14
// CHECK-NOT: internal global
15
// CHECK: @a = internal global %struct.s { i32 10 }
16
// CHECK-NOT: internal-global