• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3
4@interface NSString @end
5
6typedef const struct __CFString * CFStringRef;
7const NSString* fRef;
8
9CFStringRef func() {
10  return reinterpret_cast<CFStringRef>(fRef);
11}
12
13CFStringRef fRef1;
14
15const NSString* func1() {
16  return reinterpret_cast<const NSString*>(fRef1);
17}
18
19@interface I @end
20const I *fRef2;
21
22const NSString* func2() {
23  return reinterpret_cast<const NSString*>(fRef2);
24}
25