llvm/clang/test/CodeGen/2004-03-07-ExternalConstant.c

// 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 (void) {
  return a[0];
}