blob: fd57540681281b1188e687e515e274c9126deff5 [file] [log] [blame]
Chris Lattner6ad7e882007-12-19 05:31:29 +00001// RUN: clang %s -verify -fsyntax-only
2typedef char T[4];
3
4T foo(int n, int m) { } // expected-error {{cannot return array or function}}
5
Steve Naroffaa43cc12008-01-17 00:36:28 +00006void foof(const char *, ...) __attribute__((__format__(__printf__, 1, 2))), barf (void);
7
Steve Naroff3cd7fc32008-02-12 04:08:59 +00008struct _zend_module_entry { }
9typedef struct _zend_function_entry { } // expected-error {{cannot combine with previous 'struct' declaration specifier}}
10static void buggy(int *x) { // expected-error {{cannot combine with previous 'typedef' declaration specifier}} \
11 // expected-error {{cannot combine with previous 'struct' declaration specifier}}
12 // expected-error {{expected '}'}}