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
[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
static-order.c
blob
dbd22db96b52c098ed3b466fc548cd740c395417
1
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2
// CHECK: ModuleID
3
// CHECK-NOT: zeroinitializer
4
// CHECK-LABEL: define {{.*}}ptr @f
5
6
struct
s
{
7
int
a
;
8
};
9
10
static void
*
v
;
11
12
static struct
s a
;
13
14
static struct
s a
= {
15
10
16
};
17
18
void
*
f
(
void
)
19
{
20
if
(
a
.
a
)
21
return
v
;
22
}