Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
1147c5e70771b0e8d2aa1b9e580e57d395b979df
/
.
/
test
/
SemaObjC
/
protocol-id-test-2.m
blob: b8f94a6d7579827168233454ed4b8e74461baa2c [
file
] [
log
] [
blame
]
// RUN: clang -cc1 -verify %s
@protocol
P
@end
@interface
INTF
<
P
>
-
(
void
)
IMeth
;
@end
@implementation
INTF
-
(
void
)
IMeth
{
[(
id
<
P
>)
self
Meth
];
}
// expected-warning {{method '-Meth' not found (return type defaults to 'id')}}
@end