1 2 3 4 5 6 7 8 9 10 11 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); }