// RUN: %clang_cc1 -std=c2x -fsyntax-only -verify -pedantic %s | |
// Test that we get the extension warning when appropriate and that it shows up | |
// in the right location. | |
void test(void) { | |
(void)_Generic( | |
int, // expected-warning {{passing a type argument as the first operand to '_Generic' is a Clang extension}} | |
int : 0); | |
(void)_Generic( | |
12, | |
int : 0); | |
} | |