mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 13:36:26 +00:00
![Chris Lattner](/assets/img/avatar_default.png)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16670 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
228 B
Plaintext
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); }
|