llvm-for-llvmta/tools/clang/test/SemaObjCXX/microsoft-abi-byval.mm

16 lines
323 B
Plaintext
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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