diff options
Diffstat (limited to 'clang/test/Sema/invalid-decl.c')
| -rw-r--r-- | clang/test/Sema/invalid-decl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Sema/invalid-decl.c b/clang/test/Sema/invalid-decl.c index e9130c80a90..8c458008cb5 100644 --- a/clang/test/Sema/invalid-decl.c +++ b/clang/test/Sema/invalid-decl.c @@ -6,11 +6,14 @@ void test() { // PR2400 -typedef xtype (*zend_stream_fsizer_t)(void* handle); // expected-error {{function cannot return array or function type}} expected-warning {{type specifier missing, defaults to 'int'}} expected-warning {{type specifier missing, defaults to 'int'}} +typedef xtype (*x)(void* handle); // expected-error {{function cannot return array or function type}} expected-warning {{type specifier missing, defaults to 'int'}} expected-warning {{type specifier missing, defaults to 'int'}} + +typedef void ytype(); + typedef struct _zend_module_entry zend_module_entry; struct _zend_module_entry { - xtype globals_size; // expected-error {{field 'globals_size' declared as a function}} + ytype globals_size; // expected-error {{field 'globals_size' declared as a function}} }; zend_module_entry openssl_module_entry = { |

