1// RUN: %clang_cc1 -fsyntax-only -verify -cxx-abi microsoft -Wno-objc-root-class %s
2
3class Foo {
4  ~Foo(); // expected-note {{implicitly declared private here}}
5};
6
7@interface bar
8- (void) my_method: (Foo)arg;
9@end
10
11@implementation bar
12- (void) my_method: (Foo)arg { // expected-error {{variable of type 'Foo' has private destructor}}
13}
14@end
15