Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 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! | ||||
5 | int foo () { | ||||
6 | return a[0]; | ||||
7 | } |