Chris Lattner | 6ad7e88 | 2007-12-19 05:31:29 +0000 | [diff] [blame] | 1 | // RUN: clang %s -verify -fsyntax-only |
2 | typedef char T[4]; | ||||
3 | |||||
4 | T foo(int n, int m) { } // expected-error {{cannot return array or function}} | ||||
5 | |||||
Steve Naroff | aa43cc1 | 2008-01-17 00:36:28 +0000 | [diff] [blame^] | 6 | void foof(const char *, ...) __attribute__((__format__(__printf__, 1, 2))), barf (void); |
7 | |||||
8 |