Clang Project

clang_source_code/test/CodeGenCXX/2004-01-11-DynamicInitializedConstant.cpp
1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2
3// CHECK-NOT: constant
4extern int X;
5const int Y = X;
6const int* foo() { return &Y; }
7