GlobalnotValid;// expected-error {{variable of type 'Global' only valid as global}} expected-note {{value incorrectly allocated in an automatic variable}}
GlobalalsoNotValid[2];// expected-error {{variable of type 'Global [2]' only valid as global}} expected-note {{'Global [2]' is a global type because it is an array of global type 'Global'}} expected-note {{value incorrectly allocated in an automatic variable}}
gobble(newGlobal);// expected-error {{variable of type 'Global' only valid as global}} expected-note {{value incorrectly allocated on the heap}}
gobble(newGlobal[10]);// expected-error {{variable of type 'Global' only valid as global}} expected-note {{value incorrectly allocated on the heap}}
gobble(newTemplateClass<int>);// expected-error {{variable of type 'TemplateClass<int>' only valid as global}} expected-note {{value incorrectly allocated on the heap}}
gobble(len<=5?&valid:newGlobal);// expected-error {{variable of type 'Global' only valid as global}} expected-note {{value incorrectly allocated on the heap}}
BadInheritmoreInvalid;// expected-error {{variable of type 'BadInherit' only valid as global}} expected-note {{value incorrectly allocated in an automatic variable}}
RandomClassevenMoreInvalid;// expected-error {{variable of type 'RandomClass' only valid as global}} expected-note {{value incorrectly allocated in an automatic variable}}