1 2 3 4 5 6 7 8
// Test that new-expressions at file scope work properly. struct A { static char* p; }; int i = 1; char* A::p = new char[i]; void foo() {}