[cfe-commits] r68898 - in /cfe/trunk/test/SemaObjC: protocol-test-2.m protocols.m
Chris Lattner
sabre at nondot.org
Sun Apr 12 01:47:10 PDT 2009
Author: lattner
Date: Sun Apr 12 03:47:09 2009
New Revision: 68898
URL: http://llvm.org/viewvc/llvm-project?rev=68898&view=rev
Log:
rename test
Added:
cfe/trunk/test/SemaObjC/protocols.m
- copied unchanged from r68897, cfe/trunk/test/SemaObjC/protocol-test-2.m
Removed:
cfe/trunk/test/SemaObjC/protocol-test-2.m
Removed: cfe/trunk/test/SemaObjC/protocol-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/protocol-test-2.m?rev=68897&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/protocol-test-2.m (original)
+++ cfe/trunk/test/SemaObjC/protocol-test-2.m (removed)
@@ -1,63 +0,0 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-
- at interface INTF1
- at required // expected-error {{directive may only be specified in protocols only}}
-- (int) FooBar;
-- (int) FooBar1;
-- (int) FooBar2;
- at optional // expected-error {{directive may only be specified in protocols only}}
-+ (int) C;
-
-- (int)I;
- at end
-
- at protocol p1,p2,p3;
-
- at protocol p1;
-
- at protocol PROTO1
- at required
-- (int) FooBar;
- at optional
-- (void) MyMethod1;
-+ (int) S;
- at end
-
-
- at protocol PROTO2<p1>
- at end
-
- at protocol p1 @end
-
- at protocol PROTO<p1> // expected-note {{previous definition is here}}
- at end
-
- at protocol PROTO<p1> // expected-warning {{duplicate protocol definition of 'PROTO'}}
- at end
-
- at protocol PROTO3<p1, p1>
- at end
-
- at protocol p2 <p1>
- at end
-
- at protocol PROTO4 <p1, p2, PROTO, PROTO3, p3>
- at end
-
-
-// rdar://6771034
- at protocol XX;
- at protocol YY <XX> // Use of declaration of XX here should not cause a warning.
-- zz;
- at end
-
-
-// Detect circular dependencies.
- at protocol B;
- at protocol C < B > // expected-note{{previous definition is here}}
- at end
- at protocol A < C >
- at end
- at protocol B < A > // expected-error{{protocol has circular dependency}}
- at end
-
More information about the cfe-commits
mailing list