minix/external/bsd/llvm/dist/clang/test/CodeGen/2004-03-07-ExternalConstant.c

8 lines
201 B
C
Raw Normal View History

// 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];
}