Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s |
2 | |||||
3 | // CHECK-DAG: @g0 = external hidden constant i32 | ||||
4 | // CHECK-DAG: @g1 = hidden constant i32 1 | ||||
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 5 | |
6 | __private_extern__ const int g0; | ||||
7 | __private_extern__ const int g1 = 1; | ||||
8 | |||||
9 | int f0(void) { | ||||
10 | return g0; | ||||
11 | } |