Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjCXX / reserved-keyword-methods.mm
blob12608dea161a993478cc01f0e953c3ded21bf8bf
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 #define FOR_EACH_KEYWORD(macro) \
5 macro(asm) \
6 macro(bool) \
7 macro(catch) \
8 macro(class) \
9 macro(const_cast) \
10 macro(delete) \
11 macro(dynamic_cast) \
12 macro(explicit) \
13 macro(export) \
14 macro(false) \
15 macro(friend) \
16 macro(mutable) \
17 macro(namespace) \
18 macro(new) \
19 macro(operator) \
20 macro(private) \
21 macro(protected) \
22 macro(public) \
23 macro(reinterpret_cast) \
24 macro(static_cast) \
25 macro(template) \
26 macro(this) \
27 macro(throw) \
28 macro(true) \
29 macro(try) \
30 macro(typename) \
31 macro(typeid) \
32 macro(using) \
33 macro(virtual) \
34 macro(wchar_t)
37 #define DECLARE_METHOD(name) - (void)name;
38 #define DECLARE_PROPERTY_WITH_GETTER(name) @property (getter=name) int prop_##name;
39 @interface A 
40 //FOR_EACH_KEYWORD(DECLARE_METHOD)
41 FOR_EACH_KEYWORD(DECLARE_PROPERTY_WITH_GETTER)
42 @end