[cfe-commits] r124911 - in /cfe/trunk/test/SemaObjC: selector-1.m selector-3.m

Fariborz Jahanian fjahanian at apple.com
Fri Feb 4 15:30:23 PST 2011


Author: fjahanian
Date: Fri Feb  4 17:30:23 2011
New Revision: 124911

URL: http://llvm.org/viewvc/llvm-project?rev=124911&view=rev
Log:
Restore a test which I accientally overwrote in my last
patch.

Added:
    cfe/trunk/test/SemaObjC/selector-1.m
    cfe/trunk/test/SemaObjC/selector-3.m
      - copied unchanged from r124909, cfe/trunk/test/SemaObjC/selector-1.m

Added: cfe/trunk/test/SemaObjC/selector-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/selector-1.m?rev=124911&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/selector-1.m (added)
+++ cfe/trunk/test/SemaObjC/selector-1.m Fri Feb  4 17:30:23 2011
@@ -0,0 +1,28 @@
+// RUN: %clang_cc1 -verify %s 
+
+ at interface I
+- (id) compare: (char) arg1;
+- length;
+ at end
+
+ at interface J
+- (id) compare: (id) arg1;
+ at end
+
+SEL func()
+{
+	return @selector(compare:);	// Non warning on multiple selector found.
+}
+
+int main() {
+ SEL s = @selector(retain);
+ SEL s1 = @selector(meth1:);
+ SEL s2 = @selector(retainArgument::);
+ SEL s3 = @selector(retainArgument:::::);
+ SEL s4 = @selector(retainArgument:with:);
+ SEL s5 = @selector(meth1:with:with:);
+ SEL s6 = @selector(getEnum:enum:bool:);
+ SEL s7 = @selector(char:float:double:unsigned:short:long:);
+
+ SEL s9 = @selector(:enum:bool:);
+}





More information about the cfe-commits mailing list