Peter Collingbourne | f111d93 | 2011-04-15 00:35:48 +0000 | [diff] [blame^] | 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 | } |