llvm-project/clang/test/SemaObjCXX/cstyle-cast.mm

21 lines
242 B
Plaintext
Raw Normal View History

// RUN: clang-cc -fsyntax-only -verify %s
@protocol P @end
@interface I @end
int main() {
void *cft;
id oct = (id)cft;
Class ccct;
ccct = (Class)cft;
I* iict = (I*)cft;
id<P> pid = (id<P>)cft;
I<P> *ip = (I<P>*)cft;
}