blob: ccd3bc83659fcf462b3fd25f463a48ffb46ae860 [file] [log] [blame]
Chris Lattnera027b862007-12-12 06:22:14 +00001// RUN: clang %s -fsyntax-only -verify
Chris Lattner9a11b9a2007-10-19 20:10:30 +00002
3void test() {
4 char = 4; // expected-error {{expected identifier}} expected-error{{declarator requires an identifier}}
5
6}
7
8
Chris Lattner8389eab2008-08-09 21:35:13 +00009// PR2400
10typedef xtype (*zend_stream_fsizer_t)(void* handle); // expected-error {{function cannot return array or function type}}
11
12typedef struct _zend_module_entry zend_module_entry;
13struct _zend_module_entry {
14 xtype globals_size; // expected-error {{field 'globals_size' declared as a function}}
15};
16
17zend_module_entry openssl_module_entry = {
18 sizeof(zend_module_entry)
19};
20