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