2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
2009-11-26 10:52:12 +08:00
|
|
|
|
|
|
|
const int x = 10;
|
|
|
|
const int y = 20;
|
|
|
|
// CHECK-NOT: @x
|
2010-01-24 11:04:27 +08:00
|
|
|
// CHECK: @_ZL1y = internal constant i32 20
|
2009-11-26 10:52:12 +08:00
|
|
|
const int& b() { return y; }
|
|
|
|
|
2009-11-26 11:04:01 +08:00
|
|
|
const char z1[] = "asdf";
|
|
|
|
const char z2[] = "zxcv";
|
|
|
|
// CHECK-NOT: @z1
|
2010-01-24 11:04:27 +08:00
|
|
|
// CHECK: @_ZL2z2 = internal constant
|
2009-11-26 11:04:01 +08:00
|
|
|
const char* b2() { return z2; }
|