Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
12c118a8ff9f61a4d63146fe1a5c0d60987f99bb
/
.
/
test
/
SemaObjC
/
protocol-id-test-2.m
blob: a55923c2105836d8ceda884e54f3db656ec92565 [
file
] [
log
] [
blame
]
// RUN: clang-cc -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