repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
FrontendC
/
2004-03-07-ExternalConstant.c
blob
4a9094bdf3444ff30255b18cdf44a502af834dc6
1
// RUN: %llvmgcc -xc %s -S -o - | grep constant
2
3
extern
const int
a
[];
// 'a' should be marked constant even though it's external!
4
int
foo
() {
5
return
a
[
0
];
6
}
7