summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/decl-invalid.c
blob: 281e8a8d5c052667bae033ba29c528717a8e11ca (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: {{expected identifier or}}


// PR2017
void x(); 
int a() {
  int r[x()];  // expected-error: {{size of array has non-integer type 'void'}}
}

OpenPOWER on IntegriCloud