bolt/deps/llvm-18.1.8/clang/test/SemaObjCXX/microsoft-abi-byval.mm
2025-02-14 19:21:04 +01:00

15 lines
323 B
Text

// RUN: %clang_cc1 -fsyntax-only -verify -triple %ms_abi_triple -Wno-objc-root-class %s
// expected-no-diagnostics
class Foo {
~Foo();
};
@interface bar
- (void) my_method: (Foo)arg;
@end
@implementation bar
- (void) my_method: (Foo)arg { // no error; MS ABI will call Foo's dtor, but we skip the access check.
}
@end