@end
+int test1(void) {
+ [Greeter hello];
+ return 0;
+}
+
@interface NSObject @end
- (int)length;
@end
-void test() {
+void test2() {
// No unused warning: rdar://7126285
@"pointless example call for test purposes".length;
}
-int main (void) {
- [Greeter hello];
- return 0;
-}
+
+@interface foo
+- (int)meth: (int)x: (int)y: (int)z ;
+@end
+
+@implementation foo
+- (int) meth: (int)x:
+(int)y: // expected-warning{{unused}}
+(int) __attribute__((unused))z { return x; }
+@end
+++ /dev/null
-// RUN: clang -fsyntax-only -Wunused -Xclang -verify %s
-
-@interface foo
-- (int)meth: (int)x: (int)y: (int)z ;
-@end
-
-@implementation foo
-- (int) meth: (int)x:
- (int)y: // expected-warning{{unused}}
- (int) __attribute__((unused))z { return x; }
-@end