blob: 767d6e6ab40c8af17a31eced8cd873f8151c6b22 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | // RUN: clang %s -fsyntax-only -verify
typedef union <anonymous> __mbstate_t;  // expected-error {{declaration of anonymous union must be a definition}}
// PR2017
void x(); 
int a() {
  int r[x()];  // expected-error {{size of array has non-integer type 'void'}}
}
 |