1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 22:42:52 +01:00
llvm-mirror/test/Regression/C++Frontend/2004-10-04-ExternalGlobalConstant.cpp.tr
Chris Lattner 6df035f866 New testcase for PR450
llvm-svn: 16670
2004-10-05 00:18:21 +00:00

13 lines
228 B
Plaintext

// RUN: %llvmgcc -xc++ -S -o - %s | grep %y | not grep constant
struct Y {
int A;
Y();
};
// This global cannot be marked 'constant' because the ctor can modify it.
extern const Y y;
void foo(...);
int bar() { foo(&y); }