diff options
Diffstat (limited to 'test/Rewriter/rewrite-modern-ivars-1.mm')
-rw-r--r-- | test/Rewriter/rewrite-modern-ivars-1.mm | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/test/Rewriter/rewrite-modern-ivars-1.mm b/test/Rewriter/rewrite-modern-ivars-1.mm index 376d300..dbd28d1 100644 --- a/test/Rewriter/rewrite-modern-ivars-1.mm +++ b/test/Rewriter/rewrite-modern-ivars-1.mm @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp -// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp +// RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw.cpp @interface NSCheapMutableString { @private @@ -87,3 +87,38 @@ } @end +enum OUTSIDE { + yes +}; + +@interface MoreEnumTests { +@private + enum INSIDE { + no + } others; + + enum OUTSIDE meetoo; + + enum { + one, + two + } eu; +} +@end + +@interface I { + enum INSIDE I1; + enum OUTSIDE I2; + enum ALSO_INSIDE { + maybe + } I3; + + enum ALSO_INSIDE I4; + + enum { + three, + four + } I5; +} +@end + |