aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/microsoft-abi-byval.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/microsoft-abi-byval.mm')
-rw-r--r--test/SemaObjCXX/microsoft-abi-byval.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaObjCXX/microsoft-abi-byval.mm b/test/SemaObjCXX/microsoft-abi-byval.mm
new file mode 100644
index 000000000000..f0c4caa9e06d
--- /dev/null
+++ b/test/SemaObjCXX/microsoft-abi-byval.mm
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -cxx-abi microsoft -Wno-objc-root-class %s
+
+class Foo {
+ ~Foo(); // expected-note {{implicitly declared private here}}
+};
+
+@interface bar
+- (void) my_method: (Foo)arg;
+@end
+
+@implementation bar
+- (void) my_method: (Foo)arg { // expected-error {{variable of type 'Foo' has private destructor}}
+}
+@end