[cfe-commits] r78705 - in /cfe/trunk/test/SemaObjC: unused.m warn-unused-parameters.m
Chris Lattner
sabre at nondot.org
Tue Aug 11 13:08:52 PDT 2009
Author: lattner
Date: Tue Aug 11 15:08:52 2009
New Revision: 78705
URL: http://llvm.org/viewvc/llvm-project?rev=78705&view=rev
Log:
merge two tests.
Removed:
cfe/trunk/test/SemaObjC/warn-unused-parameters.m
Modified:
cfe/trunk/test/SemaObjC/unused.m
Modified: cfe/trunk/test/SemaObjC/unused.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/unused.m?rev=78705&r1=78704&r2=78705&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/unused.m (original)
+++ cfe/trunk/test/SemaObjC/unused.m Tue Aug 11 15:08:52 2009
@@ -12,6 +12,11 @@
@end
+int test1(void) {
+ [Greeter hello];
+ return 0;
+}
+
@interface NSObject @end
@@ -19,15 +24,21 @@
- (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;
-}
+
+ at interface foo
+- (int)meth: (int)x: (int)y: (int)z ;
+ at end
+
+ at implementation foo
+- (int) meth: (int)x:
+(int)y: // expected-warning{{unused}}
+(int) __attribute__((unused))z { return x; }
+ at end
Removed: cfe/trunk/test/SemaObjC/warn-unused-parameters.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/warn-unused-parameters.m?rev=78704&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/warn-unused-parameters.m (original)
+++ cfe/trunk/test/SemaObjC/warn-unused-parameters.m (removed)
@@ -1,11 +0,0 @@
-// RUN: clang -fsyntax-only -Wunused -Xclang -verify %s
-
- at interface foo
-- (int)meth: (int)x: (int)y: (int)z ;
- at end
-
- at implementation foo
-- (int) meth: (int)x:
- (int)y: // expected-warning{{unused}}
- (int) __attribute__((unused))z { return x; }
- at end
More information about the cfe-commits
mailing list