Sign in
ara-mdk
/
platform
/
external
/
clang
/
abc0bea57d4e659d5cde178a4bb426acc48f999e
/
.
/
test
/
CodeGen
/
2004-03-07-ExternalConstant.c
blob: 2de3a69bd679cc61a4a0ed06a316904c9cd09245 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// CHECK: @a = external constan
extern
const
int
a
[];
// 'a' should be marked constant even though it's external!
int
foo
()
{
return
a
[
0
];
}