diff options
Diffstat (limited to 'clang/test/SemaObjC')
91 files changed, 91 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/ClassPropertyNotObject.m b/clang/test/SemaObjC/ClassPropertyNotObject.m index 02ed40ae338..67d76b85e7a 100644 --- a/clang/test/SemaObjC/ClassPropertyNotObject.m +++ b/clang/test/SemaObjC/ClassPropertyNotObject.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10565506 @protocol P @end diff --git a/clang/test/SemaObjC/ContClassPropertyLookup.m b/clang/test/SemaObjC/ContClassPropertyLookup.m index 06a0ffae588..bf4f6430bae 100644 --- a/clang/test/SemaObjC/ContClassPropertyLookup.m +++ b/clang/test/SemaObjC/ContClassPropertyLookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface MyObject { int _foo; diff --git a/clang/test/SemaObjC/arc-readonly-property-ivar-1.m b/clang/test/SemaObjC/arc-readonly-property-ivar-1.m index c773f26cc11..418f90d38a8 100644 --- a/clang/test/SemaObjC/arc-readonly-property-ivar-1.m +++ b/clang/test/SemaObjC/arc-readonly-property-ivar-1.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar:// 10558871 @interface PP diff --git a/clang/test/SemaObjC/arc-readonly-property-ivar.m b/clang/test/SemaObjC/arc-readonly-property-ivar.m index 635b9fec71d..bcc1f4b45b2 100644 --- a/clang/test/SemaObjC/arc-readonly-property-ivar.m +++ b/clang/test/SemaObjC/arc-readonly-property-ivar.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar:// 10558871 @interface PP diff --git a/clang/test/SemaObjC/arc-setter-property-match.m b/clang/test/SemaObjC/arc-setter-property-match.m index 9158b09a47e..83a07e94f2b 100644 --- a/clang/test/SemaObjC/arc-setter-property-match.m +++ b/clang/test/SemaObjC/arc-setter-property-match.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -fblocks -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10156674 @class NSArray; diff --git a/clang/test/SemaObjC/arc-unsafe_unretained.m b/clang/test/SemaObjC/arc-unsafe_unretained.m index a6c5f985df8..99e870f643a 100644 --- a/clang/test/SemaObjC/arc-unsafe_unretained.m +++ b/clang/test/SemaObjC/arc-unsafe_unretained.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s +// expected-no-diagnostics struct X { __unsafe_unretained id object; diff --git a/clang/test/SemaObjC/attr-cleanup.m b/clang/test/SemaObjC/attr-cleanup.m index 8415c698f34..978498ca64b 100644 --- a/clang/test/SemaObjC/attr-cleanup.m +++ b/clang/test/SemaObjC/attr-cleanup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics @class NSString; diff --git a/clang/test/SemaObjC/block-as-object.m b/clang/test/SemaObjC/block-as-object.m index a85b6067571..945d6f68d6e 100644 --- a/clang/test/SemaObjC/block-as-object.m +++ b/clang/test/SemaObjC/block-as-object.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks +// expected-no-diagnostics @interface Whatever - copy; diff --git a/clang/test/SemaObjC/block-ivar.m b/clang/test/SemaObjC/block-ivar.m index c7ea1d96a05..5864b635012 100644 --- a/clang/test/SemaObjC/block-ivar.m +++ b/clang/test/SemaObjC/block-ivar.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks +// expected-no-diagnostics @interface NSObject { struct objc_object *isa; diff --git a/clang/test/SemaObjC/block-return.m b/clang/test/SemaObjC/block-return.m index 15c3fb64d77..e0bac996d80 100644 --- a/clang/test/SemaObjC/block-return.m +++ b/clang/test/SemaObjC/block-return.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s +// expected-no-diagnostics // rdar://8979379 @interface NSString diff --git a/clang/test/SemaObjC/builtin_objc_assign_ivar.m b/clang/test/SemaObjC/builtin_objc_assign_ivar.m index 5839bf44441..6c28178de0e 100644 --- a/clang/test/SemaObjC/builtin_objc_assign_ivar.m +++ b/clang/test/SemaObjC/builtin_objc_assign_ivar.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -x objective-c %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://9362887 typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t; diff --git a/clang/test/SemaObjC/builtin_objc_msgSend.m b/clang/test/SemaObjC/builtin_objc_msgSend.m index bf17225a041..bfa09d9f6cf 100644 --- a/clang/test/SemaObjC/builtin_objc_msgSend.m +++ b/clang/test/SemaObjC/builtin_objc_msgSend.m @@ -1,3 +1,4 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://8632525 extern id objc_msgSend(id self, SEL op, ...); diff --git a/clang/test/SemaObjC/category-method-lookup-2.m b/clang/test/SemaObjC/category-method-lookup-2.m index a31d824d1d4..ed347c7cde0 100644 --- a/clang/test/SemaObjC/category-method-lookup-2.m +++ b/clang/test/SemaObjC/category-method-lookup-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef struct objc_class *Class; @interface NSObject diff --git a/clang/test/SemaObjC/category-method-lookup.m b/clang/test/SemaObjC/category-method-lookup.m index 4223a747947..6239e948dce 100644 --- a/clang/test/SemaObjC/category-method-lookup.m +++ b/clang/test/SemaObjC/category-method-lookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Foo @end diff --git a/clang/test/SemaObjC/class-getter-using-dotsyntax.m b/clang/test/SemaObjC/class-getter-using-dotsyntax.m index 4ff9428e963..dd384b51083 100644 --- a/clang/test/SemaObjC/class-getter-using-dotsyntax.m +++ b/clang/test/SemaObjC/class-getter-using-dotsyntax.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics typedef struct objc_class *Class; diff --git a/clang/test/SemaObjC/class-property-access.m b/clang/test/SemaObjC/class-property-access.m index c46d3fb397c..735b51a3c43 100644 --- a/clang/test/SemaObjC/class-property-access.m +++ b/clang/test/SemaObjC/class-property-access.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface Test {} + (Test*)one; diff --git a/clang/test/SemaObjC/class-protocol.m b/clang/test/SemaObjC/class-protocol.m index 91cd1389f1e..021047e1205 100644 --- a/clang/test/SemaObjC/class-protocol.m +++ b/clang/test/SemaObjC/class-protocol.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // pr5552 @interface Protocol diff --git a/clang/test/SemaObjC/comptypes-2.m b/clang/test/SemaObjC/comptypes-2.m index 74e42c96137..8e90455de66 100644 --- a/clang/test/SemaObjC/comptypes-2.m +++ b/clang/test/SemaObjC/comptypes-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #define nil (void *)0; #define Nil (void *)0; diff --git a/clang/test/SemaObjC/comptypes-8.m b/clang/test/SemaObjC/comptypes-8.m index 750b0a6a5a9..e6510306891 100644 --- a/clang/test/SemaObjC/comptypes-8.m +++ b/clang/test/SemaObjC/comptypes-8.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol MyProtocol @end diff --git a/clang/test/SemaObjC/conditional-expr-5.m b/clang/test/SemaObjC/conditional-expr-5.m index 47aed3e6a57..b1f7e599694 100644 --- a/clang/test/SemaObjC/conditional-expr-5.m +++ b/clang/test/SemaObjC/conditional-expr-5.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface PBXBuildSettingsDictionary { diff --git a/clang/test/SemaObjC/conditional-expr-6.m b/clang/test/SemaObjC/conditional-expr-6.m index 098688a8a90..e944e540b2f 100644 --- a/clang/test/SemaObjC/conditional-expr-6.m +++ b/clang/test/SemaObjC/conditional-expr-6.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol MyProtocol @end diff --git a/clang/test/SemaObjC/conditional-expr-7.m b/clang/test/SemaObjC/conditional-expr-7.m index 3ddf3d73566..5b4a8632b27 100644 --- a/clang/test/SemaObjC/conditional-expr-7.m +++ b/clang/test/SemaObjC/conditional-expr-7.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // radar 7682116 @interface Super @end diff --git a/clang/test/SemaObjC/conditional-expr-8.m b/clang/test/SemaObjC/conditional-expr-8.m index 6799983e3b1..beddd205a90 100644 --- a/clang/test/SemaObjC/conditional-expr-8.m +++ b/clang/test/SemaObjC/conditional-expr-8.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://9296866 @interface NSResponder diff --git a/clang/test/SemaObjC/conflict-nonfragile-abi2.m b/clang/test/SemaObjC/conflict-nonfragile-abi2.m index 819732758d2..d0d6be84a65 100644 --- a/clang/test/SemaObjC/conflict-nonfragile-abi2.m +++ b/clang/test/SemaObjC/conflict-nonfragile-abi2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8225011 int glob; diff --git a/clang/test/SemaObjC/delay-parsing-cfunctions.m b/clang/test/SemaObjC/delay-parsing-cfunctions.m index a6f66fe1bd3..c74b054f74d 100644 --- a/clang/test/SemaObjC/delay-parsing-cfunctions.m +++ b/clang/test/SemaObjC/delay-parsing-cfunctions.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10387088 @interface MyClass diff --git a/clang/test/SemaObjC/direct-synthesized-ivar-access.m b/clang/test/SemaObjC/direct-synthesized-ivar-access.m index dc1491173aa..a276a64913b 100644 --- a/clang/test/SemaObjC/direct-synthesized-ivar-access.m +++ b/clang/test/SemaObjC/direct-synthesized-ivar-access.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8673791 // rdar://9943851 diff --git a/clang/test/SemaObjC/enhanced-proto-2.m b/clang/test/SemaObjC/enhanced-proto-2.m index 28b03d93e2d..352f29160e5 100644 --- a/clang/test/SemaObjC/enhanced-proto-2.m +++ b/clang/test/SemaObjC/enhanced-proto-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -Wno-objc-root-class %s +// expected-no-diagnostics @protocol MyProto1 @optional diff --git a/clang/test/SemaObjC/enum-fixed-type.m b/clang/test/SemaObjC/enum-fixed-type.m index 95153bedb3d..4fe643faef2 100644 --- a/clang/test/SemaObjC/enum-fixed-type.m +++ b/clang/test/SemaObjC/enum-fixed-type.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #if !__has_feature(objc_fixed_enum) # error Enumerations with a fixed underlying type are not supported diff --git a/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m b/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m index 71c3237425b..ff5c1744668 100644 --- a/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m +++ b/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface MyParent { int X; diff --git a/clang/test/SemaObjC/id_builtin.m b/clang/test/SemaObjC/id_builtin.m index a1431d60abe..be42e7d7c56 100644 --- a/clang/test/SemaObjC/id_builtin.m +++ b/clang/test/SemaObjC/id_builtin.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // id is now builtin. There should be no errors. id obj; diff --git a/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m b/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m index 36a2c1ad873..996664f6a9e 100644 --- a/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m +++ b/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://10667659 @protocol NSCopying @end diff --git a/clang/test/SemaObjC/ignore-weakimport-method.m b/clang/test/SemaObjC/ignore-weakimport-method.m index d71cebf2c79..c68c57830a9 100644 --- a/clang/test/SemaObjC/ignore-weakimport-method.m +++ b/clang/test/SemaObjC/ignore-weakimport-method.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface foo + (void) cx __attribute__((weak_import)); - (void) x __attribute__((weak_import)); diff --git a/clang/test/SemaObjC/interface-layout-2.m b/clang/test/SemaObjC/interface-layout-2.m index 02b14035a22..17e34d4681b 100644 --- a/clang/test/SemaObjC/interface-layout-2.m +++ b/clang/test/SemaObjC/interface-layout-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics @interface A { int ivar; diff --git a/clang/test/SemaObjC/interface-layout.m b/clang/test/SemaObjC/interface-layout.m index 336605a7812..9b083b0154e 100644 --- a/clang/test/SemaObjC/interface-layout.m +++ b/clang/test/SemaObjC/interface-layout.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 +// expected-no-diagnostics typedef struct objc_object {} *id; typedef signed char BOOL; typedef unsigned int NSUInteger; diff --git a/clang/test/SemaObjC/interface-scope-2.m b/clang/test/SemaObjC/interface-scope-2.m index 60fd900285d..ffd740f7fc4 100644 --- a/clang/test/SemaObjC/interface-scope-2.m +++ b/clang/test/SemaObjC/interface-scope-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-darwin9 -Wno-objc-root-class %s +// expected-no-diagnostics // FIXME: must also compile as Objective-C++ // <rdar://problem/6487662> diff --git a/clang/test/SemaObjC/interface-scope.m b/clang/test/SemaObjC/interface-scope.m index 0671dae61e8..9875eca5bf1 100644 --- a/clang/test/SemaObjC/interface-scope.m +++ b/clang/test/SemaObjC/interface-scope.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface I1 { @private diff --git a/clang/test/SemaObjC/ivar-access-package.m b/clang/test/SemaObjC/ivar-access-package.m index abc3420f1bd..ff5ff4e68ae 100644 --- a/clang/test/SemaObjC/ivar-access-package.m +++ b/clang/test/SemaObjC/ivar-access-package.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef unsigned char BOOL; diff --git a/clang/test/SemaObjC/method-conflict-1.m b/clang/test/SemaObjC/method-conflict-1.m index ca91ebdef23..654cd0166fb 100644 --- a/clang/test/SemaObjC/method-conflict-1.m +++ b/clang/test/SemaObjC/method-conflict-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // This test case tests the default behavior. diff --git a/clang/test/SemaObjC/method-in-class-extension-impl.m b/clang/test/SemaObjC/method-in-class-extension-impl.m index c205322dec9..d74ae8f154f 100644 --- a/clang/test/SemaObjC/method-in-class-extension-impl.m +++ b/clang/test/SemaObjC/method-in-class-extension-impl.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://8530080 @protocol ViewDelegate @end diff --git a/clang/test/SemaObjC/method-lookup-2.m b/clang/test/SemaObjC/method-lookup-2.m index 53cae837125..25963048f74 100644 --- a/clang/test/SemaObjC/method-lookup-2.m +++ b/clang/test/SemaObjC/method-lookup-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; @protocol NSObject diff --git a/clang/test/SemaObjC/method-lookup-4.m b/clang/test/SemaObjC/method-lookup-4.m index 700565e7832..807d4dae36b 100644 --- a/clang/test/SemaObjC/method-lookup-4.m +++ b/clang/test/SemaObjC/method-lookup-4.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSObject {} diff --git a/clang/test/SemaObjC/nested-typedef-decl.m b/clang/test/SemaObjC/nested-typedef-decl.m index bb01eadba94..7051ac689cc 100644 --- a/clang/test/SemaObjC/nested-typedef-decl.m +++ b/clang/test/SemaObjC/nested-typedef-decl.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -x objective-c -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10041908 @interface Bar { diff --git a/clang/test/SemaObjC/no-gc-weak-test.m b/clang/test/SemaObjC/no-gc-weak-test.m index dd9b73cc0de..6539a9b7f14 100644 --- a/clang/test/SemaObjC/no-gc-weak-test.m +++ b/clang/test/SemaObjC/no-gc-weak-test.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Subtask { diff --git a/clang/test/SemaObjC/no-ivar-access-control.m b/clang/test/SemaObjC/no-ivar-access-control.m index 6f00b1a367c..9bbff24be99 100644 --- a/clang/test/SemaObjC/no-ivar-access-control.m +++ b/clang/test/SemaObjC/no-ivar-access-control.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -fdebugger-support -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fdebugger-support -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10997647 @interface I diff --git a/clang/test/SemaObjC/no-warn-qual-mismatch.m b/clang/test/SemaObjC/no-warn-qual-mismatch.m index 1e3c1863667..9638da46c18 100644 --- a/clang/test/SemaObjC/no-warn-qual-mismatch.m +++ b/clang/test/SemaObjC/no-warn-qual-mismatch.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // radar 7211563 @interface X diff --git a/clang/test/SemaObjC/no-warn-synth-protocol-meth.m b/clang/test/SemaObjC/no-warn-synth-protocol-meth.m index 103f6bbd02e..cdb855e1547 100644 --- a/clang/test/SemaObjC/no-warn-synth-protocol-meth.m +++ b/clang/test/SemaObjC/no-warn-synth-protocol-meth.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @protocol CYCdef - (int)name; diff --git a/clang/test/SemaObjC/no-warn-unimpl-method.m b/clang/test/SemaObjC/no-warn-unimpl-method.m index dd6e3ad4aa3..174f70a4ee5 100644 --- a/clang/test/SemaObjC/no-warn-unimpl-method.m +++ b/clang/test/SemaObjC/no-warn-unimpl-method.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s +// expected-no-diagnostics // This program tests that if class implements the forwardInvocation method, then // every method possible is implemented in the class and should not issue // warning of the "Method definition not found" kind. */ diff --git a/clang/test/SemaObjC/no-warning-unavail-unimp.m b/clang/test/SemaObjC/no-warning-unavail-unimp.m index 88d519d115c..d5a4eac9906 100644 --- a/clang/test/SemaObjC/no-warning-unavail-unimp.m +++ b/clang/test/SemaObjC/no-warning-unavail-unimp.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://9651605 @interface Foo diff --git a/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m b/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m index b211cdea37b..d522e899eb0 100644 --- a/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m +++ b/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wsuper-class-method-mismatch -verify %s +// expected-no-diagnostics // rdar://11793793 @class NSString; diff --git a/clang/test/SemaObjC/nsobject-attribute-1.m b/clang/test/SemaObjC/nsobject-attribute-1.m index 72d8fa693a9..4a75f5ce8ef 100644 --- a/clang/test/SemaObjC/nsobject-attribute-1.m +++ b/clang/test/SemaObjC/nsobject-attribute-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface NSObject - (id)self; diff --git a/clang/test/SemaObjC/objc-buffered-methods.m b/clang/test/SemaObjC/objc-buffered-methods.m index a4b83be0cd7..55e489798d7 100644 --- a/clang/test/SemaObjC/objc-buffered-methods.m +++ b/clang/test/SemaObjC/objc-buffered-methods.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8843851 int* global; diff --git a/clang/test/SemaObjC/objc-qualified-property-lookup.m b/clang/test/SemaObjC/objc-qualified-property-lookup.m index 48b28cb05ca..b5cadbd6037 100644 --- a/clang/test/SemaObjC/objc-qualified-property-lookup.m +++ b/clang/test/SemaObjC/objc-qualified-property-lookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://9078584 @interface NSObject @end diff --git a/clang/test/SemaObjC/overriding-property-in-class-extension.m b/clang/test/SemaObjC/overriding-property-in-class-extension.m index 5cbc6d2ceb7..77efd556928 100644 --- a/clang/test/SemaObjC/overriding-property-in-class-extension.m +++ b/clang/test/SemaObjC/overriding-property-in-class-extension.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s +// expected-no-diagnostics // rdar://12103434 @class NSString; diff --git a/clang/test/SemaObjC/pedantic-dynamic-test.m b/clang/test/SemaObjC/pedantic-dynamic-test.m index 61f36b33382..1fc5ef66b88 100644 --- a/clang/test/SemaObjC/pedantic-dynamic-test.m +++ b/clang/test/SemaObjC/pedantic-dynamic-test.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -pedantic -Wno-objc-root-class %s +// expected-no-diagnostics // rdar: // 7860960 @interface I diff --git a/clang/test/SemaObjC/pragma-pack.m b/clang/test/SemaObjC/pragma-pack.m index ba39257fcd5..6869bca90d0 100644 --- a/clang/test/SemaObjC/pragma-pack.m +++ b/clang/test/SemaObjC/pragma-pack.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // Make sure pragma pack works inside ObjC methods. <rdar://problem/10893316> @interface X diff --git a/clang/test/SemaObjC/property-11.m b/clang/test/SemaObjC/property-11.m index 297611574ea..e41a840c922 100644 --- a/clang/test/SemaObjC/property-11.m +++ b/clang/test/SemaObjC/property-11.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSSound @end diff --git a/clang/test/SemaObjC/property-13.m b/clang/test/SemaObjC/property-13.m index 2ca34165268..362d6d3b15d 100644 --- a/clang/test/SemaObjC/property-13.m +++ b/clang/test/SemaObjC/property-13.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-unreachable-code +// expected-no-diagnostics @interface NSObject + alloc; diff --git a/clang/test/SemaObjC/property-2.m b/clang/test/SemaObjC/property-2.m index f95af599027..3298ee5766e 100644 --- a/clang/test/SemaObjC/property-2.m +++ b/clang/test/SemaObjC/property-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Tester @property char PropertyAtomic_char; diff --git a/clang/test/SemaObjC/property-6.m b/clang/test/SemaObjC/property-6.m index 933a4f0673f..f2a293ec5ea 100644 --- a/clang/test/SemaObjC/property-6.m +++ b/clang/test/SemaObjC/property-6.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions %s +// expected-no-diagnostics # 1 "<command line>" # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3 typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-7.m b/clang/test/SemaObjC/property-7.m index e6cba50f7a6..3d03b8f680d 100644 --- a/clang/test/SemaObjC/property-7.m +++ b/clang/test/SemaObjC/property-7.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef struct _NSZone NSZone; diff --git a/clang/test/SemaObjC/property-8.m b/clang/test/SemaObjC/property-8.m index 8647aba8c3e..da97ffcb7ed 100644 --- a/clang/test/SemaObjC/property-8.m +++ b/clang/test/SemaObjC/property-8.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef unsigned int NSUInteger; typedef struct _NSZone NSZone; diff --git a/clang/test/SemaObjC/property-9-impl-method.m b/clang/test/SemaObjC/property-9-impl-method.m index 84eb3635e2a..d6220f66fa9 100644 --- a/clang/test/SemaObjC/property-9-impl-method.m +++ b/clang/test/SemaObjC/property-9-impl-method.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://5967199 typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-and-ivar-use.m b/clang/test/SemaObjC/property-and-ivar-use.m index 5b40d854898..a9974945b2c 100644 --- a/clang/test/SemaObjC/property-and-ivar-use.m +++ b/clang/test/SemaObjC/property-and-ivar-use.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // Do not issue error if 'ivar' used previously belongs to the inherited class // and has same name as @dynalic property in current class. diff --git a/clang/test/SemaObjC/property-dot-receiver.m b/clang/test/SemaObjC/property-dot-receiver.m index c5a928b4e89..4a5f1959dc0 100644 --- a/clang/test/SemaObjC/property-dot-receiver.m +++ b/clang/test/SemaObjC/property-dot-receiver.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8962253 @interface Singleton { diff --git a/clang/test/SemaObjC/property-method-lookup-impl.m b/clang/test/SemaObjC/property-method-lookup-impl.m index 19d4e684944..dc490edb1fd 100644 --- a/clang/test/SemaObjC/property-method-lookup-impl.m +++ b/clang/test/SemaObjC/property-method-lookup-impl.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface SSyncCEList { diff --git a/clang/test/SemaObjC/property-nonfragile-abi.m b/clang/test/SemaObjC/property-nonfragile-abi.m index 55bf91f383d..3684cb00ebb 100644 --- a/clang/test/SemaObjC/property-nonfragile-abi.m +++ b/clang/test/SemaObjC/property-nonfragile-abi.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-noprotocol-warning.m b/clang/test/SemaObjC/property-noprotocol-warning.m index 71bb86a301e..e4752c52bc9 100644 --- a/clang/test/SemaObjC/property-noprotocol-warning.m +++ b/clang/test/SemaObjC/property-noprotocol-warning.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface Object diff --git a/clang/test/SemaObjC/property-redundant-decl-accessor.m b/clang/test/SemaObjC/property-redundant-decl-accessor.m index 3b0e825b9d8..6ff2ceab7ea 100644 --- a/clang/test/SemaObjC/property-redundant-decl-accessor.m +++ b/clang/test/SemaObjC/property-redundant-decl-accessor.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface MyClass { const char *_myName; diff --git a/clang/test/SemaObjC/property-weak.m b/clang/test/SemaObjC/property-weak.m index a4397a684fc..d57774bf0fe 100644 --- a/clang/test/SemaObjC/property-weak.m +++ b/clang/test/SemaObjC/property-weak.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics @interface foo @property(nonatomic) int foo __attribute__((weak_import)); diff --git a/clang/test/SemaObjC/props-on-prots.m b/clang/test/SemaObjC/props-on-prots.m index c01e8338628..6962d6f895c 100644 --- a/clang/test/SemaObjC/props-on-prots.m +++ b/clang/test/SemaObjC/props-on-prots.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; diff --git a/clang/test/SemaObjC/protocol-expr-1.m b/clang/test/SemaObjC/protocol-expr-1.m index fe01d1d47a8..94a0d9e3e8b 100644 --- a/clang/test/SemaObjC/protocol-expr-1.m +++ b/clang/test/SemaObjC/protocol-expr-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol fproto; diff --git a/clang/test/SemaObjC/protocol-implementation-inherited.m b/clang/test/SemaObjC/protocol-implementation-inherited.m index c333bb5042d..45010d5e2e7 100644 --- a/clang/test/SemaObjC/protocol-implementation-inherited.m +++ b/clang/test/SemaObjC/protocol-implementation-inherited.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol P0 -bar; diff --git a/clang/test/SemaObjC/protocol-lookup-2.m b/clang/test/SemaObjC/protocol-lookup-2.m index bf0752312e4..9e8ed8a627b 100644 --- a/clang/test/SemaObjC/protocol-lookup-2.m +++ b/clang/test/SemaObjC/protocol-lookup-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSObject @end @protocol ProtocolA diff --git a/clang/test/SemaObjC/protocol-lookup.m b/clang/test/SemaObjC/protocol-lookup.m index ed3fbe0f72b..26718ae2eaa 100644 --- a/clang/test/SemaObjC/protocol-lookup.m +++ b/clang/test/SemaObjC/protocol-lookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol NSObject - retain; - release; diff --git a/clang/test/SemaObjC/protocol-qualified-class-unsupported.m b/clang/test/SemaObjC/protocol-qualified-class-unsupported.m index 4bf6b289e7b..777084d8554 100644 --- a/clang/test/SemaObjC/protocol-qualified-class-unsupported.m +++ b/clang/test/SemaObjC/protocol-qualified-class-unsupported.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include <stddef.h> diff --git a/clang/test/SemaObjC/rdar6248119.m b/clang/test/SemaObjC/rdar6248119.m index 046992c52fe..a4959783912 100644 --- a/clang/test/SemaObjC/rdar6248119.m +++ b/clang/test/SemaObjC/rdar6248119.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify -fobjc-exceptions +// expected-no-diagnostics // Test case for: // <rdar://problem/6248119> @finally doesn't introduce a new scope diff --git a/clang/test/SemaObjC/restrict-id-type.m b/clang/test/SemaObjC/restrict-id-type.m index b24fcb0185e..24f74c93a02 100644 --- a/clang/test/SemaObjC/restrict-id-type.m +++ b/clang/test/SemaObjC/restrict-id-type.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=gnu99 -fsyntax-only -verify %s +// expected-no-diagnostics void f0(restrict id a0) {} diff --git a/clang/test/SemaObjC/selector-1.m b/clang/test/SemaObjC/selector-1.m index 16d44cbb551..186e19fead8 100644 --- a/clang/test/SemaObjC/selector-1.m +++ b/clang/test/SemaObjC/selector-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics @interface I - (id) compare: (char) arg1; diff --git a/clang/test/SemaObjC/selector-2.m b/clang/test/SemaObjC/selector-2.m index fb75369a9a1..17d1872cc7e 100644 --- a/clang/test/SemaObjC/selector-2.m +++ b/clang/test/SemaObjC/selector-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wselector -verify %s +// expected-no-diagnostics // rdar://8851684 @interface I - length; diff --git a/clang/test/SemaObjC/self-declared-in-block.m b/clang/test/SemaObjC/self-declared-in-block.m index 40a03313b69..36a9ef571d5 100644 --- a/clang/test/SemaObjC/self-declared-in-block.m +++ b/clang/test/SemaObjC/self-declared-in-block.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10 -fblocks -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-darwin10 -fblocks -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://9154582 @interface Blocky @end diff --git a/clang/test/SemaObjC/self-in-function.m b/clang/test/SemaObjC/self-in-function.m index 9027a947a03..a14ad909dde 100644 --- a/clang/test/SemaObjC/self-in-function.m +++ b/clang/test/SemaObjC/self-in-function.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s +// expected-no-diagnostics // rdar://9181463 typedef struct objc_class *Class; diff --git a/clang/test/SemaObjC/setter-dotsyntax.m b/clang/test/SemaObjC/setter-dotsyntax.m index e0b51e8b51c..ec47ee2a8e9 100644 --- a/clang/test/SemaObjC/setter-dotsyntax.m +++ b/clang/test/SemaObjC/setter-dotsyntax.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://8528170 @interface NSObject @end diff --git a/clang/test/SemaObjC/super-cat-prot.m b/clang/test/SemaObjC/super-cat-prot.m index 3e289860c06..fd9399499ec 100644 --- a/clang/test/SemaObjC/super-cat-prot.m +++ b/clang/test/SemaObjC/super-cat-prot.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef unsigned int NSUInteger; @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; diff --git a/clang/test/SemaObjC/super-property-message-expr.m b/clang/test/SemaObjC/super-property-message-expr.m index c25164e1597..81b8f8fa1d6 100644 --- a/clang/test/SemaObjC/super-property-message-expr.m +++ b/clang/test/SemaObjC/super-property-message-expr.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface SStoreNodeInfo diff --git a/clang/test/SemaObjC/super-property-notation.m b/clang/test/SemaObjC/super-property-notation.m index 7d3f7c70bb5..0c17bb9392e 100644 --- a/clang/test/SemaObjC/super-property-notation.m +++ b/clang/test/SemaObjC/super-property-notation.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface B +(int) classGetter; diff --git a/clang/test/SemaObjC/synth-provisional-ivars-1.m b/clang/test/SemaObjC/synth-provisional-ivars-1.m index 0e155f4840f..92a9d7165f1 100644 --- a/clang/test/SemaObjC/synth-provisional-ivars-1.m +++ b/clang/test/SemaObjC/synth-provisional-ivars-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8913053 typedef unsigned char BOOL; diff --git a/clang/test/SemaObjC/synthesize-setter-contclass.m b/clang/test/SemaObjC/synthesize-setter-contclass.m index d7544151872..df954db2dbb 100644 --- a/clang/test/SemaObjC/synthesize-setter-contclass.m +++ b/clang/test/SemaObjC/synthesize-setter-contclass.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface TestClass { diff --git a/clang/test/SemaObjC/transparent-union.m b/clang/test/SemaObjC/transparent-union.m index 6f2dbf915ac..bda0a54bb63 100644 --- a/clang/test/SemaObjC/transparent-union.m +++ b/clang/test/SemaObjC/transparent-union.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics typedef union { struct xx_object_s *_do; diff --git a/clang/test/SemaObjC/ucn-objc-string.m b/clang/test/SemaObjC/ucn-objc-string.m index 6070278bb13..f80d1ffb915 100644 --- a/clang/test/SemaObjC/ucn-objc-string.m +++ b/clang/test/SemaObjC/ucn-objc-string.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics @class NSString; extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2))); diff --git a/clang/test/SemaObjC/va-method-1.m b/clang/test/SemaObjC/va-method-1.m index fe7ccd7632c..4959df31990 100644 --- a/clang/test/SemaObjC/va-method-1.m +++ b/clang/test/SemaObjC/va-method-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include <stdarg.h> diff --git a/clang/test/SemaObjC/writable-property-in-superclass.m b/clang/test/SemaObjC/writable-property-in-superclass.m index bbd1f16cffc..99be5413d7a 100644 --- a/clang/test/SemaObjC/writable-property-in-superclass.m +++ b/clang/test/SemaObjC/writable-property-in-superclass.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface MessageStore @property (assign, readonly) int P; |