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
[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2004-03-07-ExternalConstant.c
blob
db09c91c1e156ee8f616a62929289b5e59ba637a
1
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3
// CHECK: @a = external {{(dso_local )?}}constan
4
extern
const int
a
[];
// 'a' should be marked constant even though it's external!
5
int
foo
(
void
) {
6
return
a
[
0
];
7
}