1 // RUN: %clang_cc1 -std=c1x -fsyntax-only -verify %s
4 _Generic
; // expected-error {{expected '('}}
5 (void) _Generic(0); // expected-error {{expected ','}}
6 (void) _Generic(0, void); // expected-error {{expected ':'}}
8 default: 0, // expected-note {{previous default generic association is here}}
9 default: 0); // expected-error {{duplicate default generic association}}
15 return _Generic(0, enum E
: n
, default: 0);
20 return _Generic(0, enum { e
}: n
, default: 0);