You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
601 B
8 lines
601 B
// RUN: %clang_cc1 -verify -fsyntax-only -fdouble-square-bracket-attributes %s
|
|
|
|
struct [[clang::objc_bridge_related(NSParagraphStyle,,)]] TestBridgedRef;
|
|
|
|
struct [[clang::objc_bridge_related(NSColor,colorWithCGColor:,CGColor)]] CGColorRefOk;
|
|
struct [[clang::objc_bridge_related(,colorWithCGColor:,CGColor)]] CGColorRef1NotOk; // expected-error {{expected a related ObjectiveC class name, e.g., 'NSColor'}}
|
|
struct [[clang::objc_bridge_related(NSColor,colorWithCGColor::,CGColor)]] CGColorRef3NotOk; // expected-error {{expected a class method selector with single argument, e.g., 'colorWithCGColor:'}}
|