]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/const-global-linkage.cpp
Update clang to r90226.
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / const-global-linkage.cpp
1 // RUN: clang-cc -emit-llvm -o - %s | FileCheck %s
2
3 const int x = 10;
4 const int y = 20;
5 // CHECK-NOT: @x
6 // CHECK: @y = internal constant i32 20
7 const int& b() { return y; }
8
9 const char z1[] = "asdf";
10 const char z2[] = "zxcv";
11 // CHECK-NOT: @z1
12 // CHECK: @z2 = internal constant
13 const char* b2() { return z2; }