1 // RUN: %clang_cc1 %s -fsyntax-only -verify 2 3 void test() { 4 char = 4; // expected-error {{expected identifier}} 5 } 6 7 8 // PR2400 9 typedef xtype (*x)(void* handle); // expected-error {{function cannot return function type}} expected-warning {{type specifier missing, defaults to 'int'}} expected-warning {{type specifier missing, defaults to 'int'}} 10 11 typedef void ytype(); 12 13 14 typedef struct _zend_module_entry zend_module_entry; 15 struct _zend_module_entry { 16 ytype globals_size; // expected-error {{field 'globals_size' declared as a function}} 17 }; 18 19 zend_module_entry openssl_module_entry = { 20 sizeof(zend_module_entry) 21 }; 22 23