1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -verify -fsyntax-only
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc typedef struct _zend_module_entry zend_module_entry;
4*f4a2713aSLionel Sambuc struct _zend_module_entry {
5*f4a2713aSLionel Sambuc _efree((p)); // expected-error{{type name requires a specifier or qualifier}} \
6*f4a2713aSLionel Sambuc expected-warning {{type specifier missing, defaults to 'int'}}
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc };
9*f4a2713aSLionel Sambuc typedef struct _zend_function_entry { } zend_function_entry;
10*f4a2713aSLionel Sambuc typedef struct _zend_pcre_globals { } zend_pcre_globals;
11*f4a2713aSLionel Sambuc zend_pcre_globals pcre_globals;
12*f4a2713aSLionel Sambuc
zm_globals_ctor_pcre(zend_pcre_globals * pcre_globals)13*f4a2713aSLionel Sambuc static void zm_globals_ctor_pcre(zend_pcre_globals *pcre_globals ) { }
zm_globals_dtor_pcre(zend_pcre_globals * pcre_globals)14*f4a2713aSLionel Sambuc static void zm_globals_dtor_pcre(zend_pcre_globals *pcre_globals ) { }
zm_info_pcre(zend_module_entry * zend_module)15*f4a2713aSLionel Sambuc static void zm_info_pcre(zend_module_entry *zend_module ) { }
zm_startup_pcre(int type,int module_number)16*f4a2713aSLionel Sambuc static int zm_startup_pcre(int type, int module_number ) { }
17*f4a2713aSLionel Sambuc
zm_shutdown_pcre(int type,int module_number)18*f4a2713aSLionel Sambuc static int zm_shutdown_pcre(int type, int module_number ) {
19*f4a2713aSLionel Sambuc zend_function_entry pcre_functions[] = {{ }; // expected-error{{expected '}'}} expected-note {{to match this '{'}}
20*f4a2713aSLionel Sambuc zend_module_entry pcre_module_entry = {
21*f4a2713aSLionel Sambuc sizeof(zend_module_entry), 20071006, 0, 0, ((void *)0), ((void *)0),
22*f4a2713aSLionel Sambuc "pcre", pcre_functions, zm_startup_pcre, zm_shutdown_pcre, ((void *)0),
23*f4a2713aSLionel Sambuc ((void *)0), zm_info_pcre, ((void *)0), sizeof(zend_pcre_globals), &pcre_globals,
24*f4a2713aSLionel Sambuc ((void (*)(void* ))(zm_globals_ctor_pcre)), ((void (*)(void* ))(zm_globals_dtor_pcre)),
25*f4a2713aSLionel Sambuc ((void *)0), 0, 0, ((void *)0), 0
26*f4a2713aSLionel Sambuc };
27*f4a2713aSLionel Sambuc }
28