1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc#define FOR_EACH_KEYWORD(macro) \ 5*f4a2713aSLionel Sambucmacro(asm) \ 6*f4a2713aSLionel Sambucmacro(bool) \ 7*f4a2713aSLionel Sambucmacro(catch) \ 8*f4a2713aSLionel Sambucmacro(class) \ 9*f4a2713aSLionel Sambucmacro(const_cast) \ 10*f4a2713aSLionel Sambucmacro(delete) \ 11*f4a2713aSLionel Sambucmacro(dynamic_cast) \ 12*f4a2713aSLionel Sambucmacro(explicit) \ 13*f4a2713aSLionel Sambucmacro(export) \ 14*f4a2713aSLionel Sambucmacro(false) \ 15*f4a2713aSLionel Sambucmacro(friend) \ 16*f4a2713aSLionel Sambucmacro(mutable) \ 17*f4a2713aSLionel Sambucmacro(namespace) \ 18*f4a2713aSLionel Sambucmacro(new) \ 19*f4a2713aSLionel Sambucmacro(operator) \ 20*f4a2713aSLionel Sambucmacro(private) \ 21*f4a2713aSLionel Sambucmacro(protected) \ 22*f4a2713aSLionel Sambucmacro(public) \ 23*f4a2713aSLionel Sambucmacro(reinterpret_cast) \ 24*f4a2713aSLionel Sambucmacro(static_cast) \ 25*f4a2713aSLionel Sambucmacro(template) \ 26*f4a2713aSLionel Sambucmacro(this) \ 27*f4a2713aSLionel Sambucmacro(throw) \ 28*f4a2713aSLionel Sambucmacro(true) \ 29*f4a2713aSLionel Sambucmacro(try) \ 30*f4a2713aSLionel Sambucmacro(typename) \ 31*f4a2713aSLionel Sambucmacro(typeid) \ 32*f4a2713aSLionel Sambucmacro(using) \ 33*f4a2713aSLionel Sambucmacro(virtual) \ 34*f4a2713aSLionel Sambucmacro(wchar_t) 35*f4a2713aSLionel Sambuc 36*f4a2713aSLionel Sambuc 37*f4a2713aSLionel Sambuc#define DECLARE_METHOD(name) - (void)name; 38*f4a2713aSLionel Sambuc#define DECLARE_PROPERTY_WITH_GETTER(name) @property (getter=name) int prop_##name; 39*f4a2713aSLionel Sambuc@interface A 40*f4a2713aSLionel Sambuc//FOR_EACH_KEYWORD(DECLARE_METHOD) 41*f4a2713aSLionel SambucFOR_EACH_KEYWORD(DECLARE_PROPERTY_WITH_GETTER) 42*f4a2713aSLionel Sambuc@end 43*f4a2713aSLionel Sambuc 44