repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* gcc.dg/vect/vect-shift-1.c: Include tree-vect.h header. Check
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
proto-lossage-2.mm
blob
b3ab9681f6273ef5d1a727a15a9cb006b7a3fba8
1
/* Don't forget to look in protocols if a class (and its superclasses) do not
2
provide a suitable method. */
3
/* { dg-do compile } */
4
5
#include <objc/Object.h>
6
7
@protocol Zot
8
-(void) zot;
9
@end
10
11
@interface Foo : Object <Zot>
12
@end
13
14
int foo()
15
{
16
Foo *f=nil;
17
[f zot]; /* There should be no warnings here! */
18
return 0;
19
}
20