llvm-for-llvmta/tools/clang/test/CodeGenCXX/2004-01-11-DynamicInitializ...

7 lines
140 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
// CHECK-NOT: constant
extern int X;
const int Y = X;
const int* foo() { return &Y; }