Anders Carlsson | 305ac49 | 2010-10-02 17:08:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | #define FOR_EACH_KEYWORD(macro) \ |
| 4 | macro(asm) \ |
| 5 | macro(bool) \ |
| 6 | macro(catch) \ |
| 7 | macro(class) \ |
| 8 | macro(const_cast) \ |
| 9 | macro(delete) \ |
| 10 | macro(dynamic_cast) \ |
| 11 | macro(explicit) \ |
| 12 | macro(export) \ |
| 13 | macro(false) \ |
| 14 | macro(friend) \ |
| 15 | macro(mutable) \ |
| 16 | macro(namespace) \ |
| 17 | macro(new) \ |
| 18 | macro(operator) \ |
| 19 | macro(private) \ |
| 20 | macro(protected) \ |
| 21 | macro(public) \ |
| 22 | macro(reinterpret_cast) \ |
| 23 | macro(static_cast) \ |
| 24 | macro(template) \ |
| 25 | macro(this) \ |
| 26 | macro(throw) \ |
| 27 | macro(true) \ |
| 28 | macro(try) \ |
| 29 | macro(typename) \ |
| 30 | macro(typeid) \ |
| 31 | macro(using) \ |
| 32 | macro(virtual) \ |
| 33 | macro(wchar_t) |
| 34 | |
| 35 | |
| 36 | #define DECLARE_METHOD(name) - (void)name; |
Anders Carlsson | 42499be | 2010-10-02 17:45:21 +0000 | [diff] [blame] | 37 | #define DECLARE_PROPERTY_WITH_GETTER(name) @property (getter=name) int prop_##name; |
Anders Carlsson | 305ac49 | 2010-10-02 17:08:38 +0000 | [diff] [blame] | 38 | @interface A |
Anders Carlsson | 42499be | 2010-10-02 17:45:21 +0000 | [diff] [blame] | 39 | //FOR_EACH_KEYWORD(DECLARE_METHOD) |
| 40 | FOR_EACH_KEYWORD(DECLARE_PROPERTY_WITH_GETTER) |
Anders Carlsson | 305ac49 | 2010-10-02 17:08:38 +0000 | [diff] [blame] | 41 | @end |
| 42 | |