llvm/test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp
2008-05-21 14:48:24 +00:00

7 lines
123 B
C++

// RUN: %llvmgcc -xc++ -S -o - %s | not grep { constant }
extern int X;
const int Y = X;
const int* foo() { return &Y; }