llvm-project/clang/test/CodeGenCXX/const-global-linkage.cpp

9 lines
175 B
C++
Raw Normal View History

// RUN: clang-cc -emit-llvm -o - %s | FileCheck %s
const int x = 10;
const int y = 20;
// CHECK-NOT: @x
// CHECK: @y = internal constant i32 20
const int& b() { return y; }