gcc.target/cris/pr93372-3.c, -4.c...-35.c: New tests.
[gcc.git] / gcc / testsuite / objc.dg / proto-lossage-5.m
1 /* Do not lose references to forward-declared protocols. */
2 /* { dg-do compile } */
3 @class MyBaseClass;
4 @class MyClassThatFails;
5 @protocol _MyProtocol;
6
7 @interface MyClassThatFails
8 - (MyBaseClass<_MyProtocol> *) aMethod;
9 @end
10
11 @interface MyBaseClass
12 @end
13
14 @protocol _MyProtocol
15 @end
16
17 @implementation MyClassThatFails
18 - (MyBaseClass<_MyProtocol> *) aMethod
19 {
20 return 0;
21 }
22 @end