mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-28 00:50:37 +00:00
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:
parent
0d98aede69
commit
cbd141fa33
12
test/C++Frontend/2004-10-04-ExternalGlobalConstant.cpp.tr
Normal file
12
test/C++Frontend/2004-10-04-ExternalGlobalConstant.cpp.tr
Normal 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); }
|
Loading…
x
Reference in New Issue
Block a user