mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
New testcase for PR450
llvm-svn: 16670
This commit is contained in:
parent
010dec5772
commit
6df035f866
@ -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…
Reference in New Issue
Block a user