Sign in
cobalt
/
cobalt
/
04cd6faca4dd5039a1b810e9ba7b7a79e51a781d
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
CodeGen
/
2004-03-07-ExternalConstant.c
blob: 36371c073d8d8b636a48ca48716ecdbf6914db58 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// CHECK: @a = external {{(dso_local )?}}constan
extern
const
int
a
[];
// 'a' should be marked constant even though it's external!
int
foo
()
{
return
a
[
0
];
}