blob: b92146260ef11f66f8638f241d9b3de6b70aeeb0 [file] [log] [blame]
Chris Lattner3b427b32007-10-11 00:18:28 +00001// RUN: clang %s -fsyntax-only -verify
Chris Lattnere80a59c2007-07-25 00:24:17 +00002
Douglas Gregore37ac4f2008-04-13 21:30:24 +00003typedef union <anonymous> __mbstate_t; // expected-error: {{declaration of anonymous union must be a definition}}
Chris Lattnerfd89bc82008-04-02 01:05:10 +00004
5
6// PR2017
7void x();
8int a() {
9 int r[x()]; // expected-error: {{size of array has non-integer type 'void'}}
10}
11