summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/2004-01-11-DynamicInitializedConstant.cpp
blob: 0c9333fb6d7a0dba6daa9591568f3712e29944fe (about) (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s

// CHECK-NOT: constant
extern int X;
const int Y = X;
const int* foo() { return &Y; }