blob: d0a055b494959e1c4335b9106dc0b320804a36ad [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
Eli Friedmanbd94ab92009-11-26 02:52:12 +00002
3const int x = 10;
4const int y = 20;
5// CHECK-NOT: @x
Sean Hunt31455252010-01-24 03:04:27 +00006// CHECK: @_ZL1y = internal constant i32 20
Eli Friedmanbd94ab92009-11-26 02:52:12 +00007const int& b() { return y; }
8
Eli Friedmane9d65542009-11-26 03:04:01 +00009const char z1[] = "asdf";
10const char z2[] = "zxcv";
11// CHECK-NOT: @z1
Sean Hunt31455252010-01-24 03:04:27 +000012// CHECK: @_ZL2z2 = internal constant
Eli Friedmane9d65542009-11-26 03:04:01 +000013const char* b2() { return z2; }