summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/test19193.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/test19193.d')
-rw-r--r--gcc/testsuite/gdc.test/fail_compilation/test19193.d22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/test19193.d b/gcc/testsuite/gdc.test/fail_compilation/test19193.d
new file mode 100644
index 00000000000..90227761e7f
--- /dev/null
+++ b/gcc/testsuite/gdc.test/fail_compilation/test19193.d
@@ -0,0 +1,22 @@
+/*
+REQUIRED_ARGS: -de
+TEST_OUTPUT
+---
+fail_compilation/test19193.d(13): Deprecation: enum member `test19193.T19193!int.A.b` is deprecated
+---
+*/
+
+// https://issues.dlang.org/show_bug.cgi?id=19193
+
+void main ()
+{
+ cast(void)T19193!int.A.b;
+}
+
+template T19193(T)
+{
+ enum A
+ {
+ deprecated b
+ }
+}