New testcase for PR450

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16670 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-10-05 00:18:21 +00:00
parent 0d98aede69
commit cbd141fa33

View File

@ -0,0 +1,12 @@
// 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); }