mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
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); }
|