Chris Lattner | a027b86 | 2007-12-12 06:22:14 +0000 | [diff] [blame] | 1 | // RUN: clang %s -fsyntax-only -verify |
Chris Lattner | 9a11b9a | 2007-10-19 20:10:30 +0000 | [diff] [blame] | 2 | |
| 3 | void test() { |
| 4 | char = 4; // expected-error {{expected identifier}} expected-error{{declarator requires an identifier}} |
| 5 | |
| 6 | } |
| 7 | |
| 8 | |
Chris Lattner | 8389eab | 2008-08-09 21:35:13 +0000 | [diff] [blame] | 9 | // PR2400 |
| 10 | typedef xtype (*zend_stream_fsizer_t)(void* handle); // expected-error {{function cannot return array or function type}} |
| 11 | |
| 12 | typedef struct _zend_module_entry zend_module_entry; |
| 13 | struct _zend_module_entry { |
| 14 | xtype globals_size; // expected-error {{field 'globals_size' declared as a function}} |
| 15 | }; |
| 16 | |
| 17 | zend_module_entry openssl_module_entry = { |
| 18 | sizeof(zend_module_entry) |
| 19 | }; |
| 20 | |