summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test19409.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test19409.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test19409.d6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test19409.d b/gcc/testsuite/gdc.test/compilable/test19409.d
new file mode 100644
index 00000000000..94915e8477c
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test19409.d
@@ -0,0 +1,6 @@
+// https://issues.dlang.org/show_bug.cgi?id=19409
+
+module test.foo;
+
+static if (__traits(compiles, __traits(identifier, test.foo))) {} // fails
+else { static assert(0); }