summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail18417.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail18417.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/fail18417.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail18417.d b/gcc/testsuite/gdc.test/fail_compilation/fail18417.d
new file mode 100644
index 00000000000..b32a99b49b6
--- /dev/null
+++ b/gcc/testsuite/gdc.test/fail_compilation/fail18417.d
@@ -0,0 +1,13 @@
+// REQUIRED_ARGS : -de
+/*
+TEST_OUTPUT:
+---
+fail_compilation/fail18417.d(11): Deprecation: `const` postblit is deprecated. Please use an unqualified postblit.
+fail_compilation/fail18417.d(12): Deprecation: `immutable` postblit is deprecated. Please use an unqualified postblit.
+fail_compilation/fail18417.d(13): Deprecation: `shared` postblit is deprecated. Please use an unqualified postblit.
+---
+*/
+
+struct A { this(this) const {} }
+struct B { this(this) immutable {} }
+struct C { this(this) shared {} }