brintos

brintos / llvm-project-archived public Read only

0
0
Text · 501 B · 2ec64cf Raw
18 lines · cpp
1// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s2 3const int x = 10;4const int y = 20;5const volatile int z = 30;6// CHECK-NOT: @x7// CHECK: @z = {{(dso_local )?}}constant i32 308// CHECK: @_ZL1y = internal constant i32 209const int& b() { return y; }10 11const char z1[] = "asdf";12const char z2[] = "zxcv";13const volatile char z3[] = "zxcv";14// CHECK-NOT: @z115// CHECK: @z3 = {{(dso_local )?}}constant16// CHECK: @_ZL2z2 = internal constant17const char* b2() { return z2; }18