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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
shared-string-literals.c
blob
555cfc87cab7bfbf029418dd408ef52952b5b96c
1
// RUN: %clang_cc1 -emit-llvm %s -o %t
2
3
char
*
globalString
=
"abc"
;
4
char
*
globalStringArray
[
5
] = {
"123"
,
"abc"
};
5
char
*
anotherGlobalString
=
"123"
;
6
7
int
printf
(
const char
*, ...);
8
int
main
(
void
) {
9
printf
(
"123"
);
10
}