brintos

brintos / llvm-project-archived public Read only

0
0
Text · 518 B · c640e52 Raw
20 lines · plain
1// RUN: %clang_cc1 -std=gnu++17 -verify %s2 3// expected-no-diagnostics4 5typedef const struct __CFString * CFStringRef;6 7extern "C" {8  typedef const struct __attribute__((objc_bridge(NSString))) __CFString * CFStringRef;9  typedef struct __attribute__((objc_bridge_mutable(NSMutableString))) __CFString * CFMutableStringRef;10}11 12@interface NSString @end13@interface NSMutableString : NSString @end14 15void CFStringGetLength(CFStringRef theString);16 17int main() {18  CFStringGetLength((__bridge CFStringRef)(NSString *)0);19}20