Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -std=c1x -fsyntax-only -verify %s
      2 
      3 void foo(void) {
      4   _Generic; // expected-error {{expected '('}}
      5   (void) _Generic(0); // expected-error {{expected ','}}
      6   (void) _Generic(0, void); // expected-error {{expected ':'}}
      7   (void) _Generic(0,
      8       default: 0,  // expected-note {{previous default generic association is here}}
      9       default: 0); // expected-error {{duplicate default generic association}}
     10 }
     11