xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjCXX/microsoft-abi-byval.mm (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify -triple %ms_abi_triple -Wno-objc-root-class %s
2*0a6a1f1dSLionel Sambuc// expected-no-diagnostics
3f4a2713aSLionel Sambuc
4f4a2713aSLionel Sambucclass Foo {
5*0a6a1f1dSLionel Sambuc  ~Foo();
6f4a2713aSLionel Sambuc};
7f4a2713aSLionel Sambuc
8f4a2713aSLionel Sambuc@interface bar
9f4a2713aSLionel Sambuc- (void) my_method: (Foo)arg;
10f4a2713aSLionel Sambuc@end
11f4a2713aSLionel Sambuc
12f4a2713aSLionel Sambuc@implementation bar
13*0a6a1f1dSLionel Sambuc- (void) my_method: (Foo)arg { // no error; MS ABI will call Foo's dtor, but we skip the access check.
14f4a2713aSLionel Sambuc}
15f4a2713aSLionel Sambuc@end
16