summaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/microsoft-abi-byval.mm
blob: a44f24085dc240d8748cb61276861fd910bd83e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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