blob: 2de3a69bd679cc61a4a0ed06a316904c9cd09245 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3// CHECK: @a = external constan
4extern const int a[]; // 'a' should be marked constant even though it's external!
5int foo () {
6 return a[0];
7}