blob: f12c569d9428b7749d0f8782d3e238f720f6e646 [file] [log] [blame]
Eli Friedmanbd94ab92009-11-26 02:52:12 +00001// RUN: clang-cc -emit-llvm -o - %s | FileCheck %s
2
3const int x = 10;
4const int y = 20;
5// CHECK-NOT: @x
6// CHECK: @y = internal constant i32 20
7const int& b() { return y; }
8
Eli Friedmane9d65542009-11-26 03:04:01 +00009const char z1[] = "asdf";
10const char z2[] = "zxcv";
11// CHECK-NOT: @z1
12// CHECK: @z2 = internal constant
13const char* b2() { return z2; }