19 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s2 3// The preprocessor shouldn't warn about extensions within macro bodies that4// aren't expanded.5#define TY typeof6#define TY1 typeof(1)7 8// But we should warn here9TY1 x; // expected-warning {{extension}}10TY(1) x; // FIXME: And we should warn here11 12// Note: this warning intentionally doesn't trigger on keywords like13// __attribute; the standard allows implementation-defined extensions14// prefixed with "__".15// Current list of keywords this can trigger on:16// inline, restrict, asm, typeof, _asm17 18void whatever(void) {}19