2007-12-12 14:22:14 +08:00
|
|
|
// RUN: clang %s -fsyntax-only -verify
|
2007-10-20 04:10:30 +08:00
|
|
|
|
|
|
|
void test() {
|
2008-11-11 14:13:16 +08:00
|
|
|
char = 4; // expected-error {{expected identifier}}
|
2007-10-20 04:10:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-08-10 05:35:13 +08:00
|
|
|
// PR2400
|
|
|
|
typedef xtype (*zend_stream_fsizer_t)(void* handle); // expected-error {{function cannot return array or function type}}
|
|
|
|
|
|
|
|
typedef struct _zend_module_entry zend_module_entry;
|
|
|
|
struct _zend_module_entry {
|
|
|
|
xtype globals_size; // expected-error {{field 'globals_size' declared as a function}}
|
|
|
|
};
|
|
|
|
|
|
|
|
zend_module_entry openssl_module_entry = {
|
|
|
|
sizeof(zend_module_entry)
|
|
|
|
};
|
|
|
|
|