Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Sema / attr-objc-bridge-related.m
blob6c7fb2588dbc91be9ec499f203260fd86411ca06
1 // RUN: %clang_cc1 -verify -fsyntax-only %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 Objective-C 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:'}}