[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / attr-objc-bridge-related.m
blobbf059ba018607a1eb3cb94be80a35af2ed3e26fa
1 // RUN: %clang_cc1 -verify -fsyntax-only -fdouble-square-bracket-attributes %s
3 struct [[clang::objc_bridge_related(NSParagraphStyle,,)]] TestBridgedRef;
5 struct [[clang::objc_bridge_related(NSColor,colorWithCGColor:,CGColor)]] CGColorRefOk;
6 struct [[clang::objc_bridge_related(,colorWithCGColor:,CGColor)]] CGColorRef1NotOk; // expected-error {{expected a related ObjectiveC class name, e.g., 'NSColor'}}
7 struct [[clang::objc_bridge_related(NSColor,colorWithCGColor::,CGColor)]] CGColorRef3NotOk; // expected-error {{expected a class method selector with single argument, e.g., 'colorWithCGColor:'}}