Chris Lattner | 3b427b3 | 2007-10-11 00:18:28 +0000 | [diff] [blame] | 1 | // RUN: clang %s -fsyntax-only -verify |
Chris Lattner | e80a59c | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 2 | |
3 | typedef union <anonymous> __mbstate_t; // expected-error: {{expected identifier or}} | ||||
Chris Lattner | fd89bc8 | 2008-04-02 01:05:10 +0000 | [diff] [blame^] | 4 | |
5 | |||||
6 | // PR2017 | ||||
7 | void x(); | ||||
8 | int a() { | ||||
9 | int r[x()]; // expected-error: {{size of array has non-integer type 'void'}} | ||||
10 | } | ||||
11 |