Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
860a319e62b0e256817a458396d191aa91c0787a
/
.
/
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
];
}