xref: /llvm-project/clang/test/CodeGen/2004-03-07-ExternalConstant.c (revision 1ea584377e7897f7df5302ed9cd378d17be14fbf)
1 // RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
2 
3 // CHECK: @a = external {{(dso_local )?}}constan
4 extern const int a[];   // 'a' should be marked constant even though it's external!
foo(void)5 int foo (void) {
6   return a[0];
7 }
8