summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/msg-in-protocol.m
blob: 86b7c85a3d3d878d60cfe2bcfac996651756b73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */

#include <objc/objc.h>

@class Foo;

@protocol Bar

- (void)bang;

@end

void foo()
{
    Foo<Bar> *foo = nil;
    [foo bang];
}