summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/imports/imp21832.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/imports/imp21832.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/imports/imp21832.d24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/imports/imp21832.d b/gcc/testsuite/gdc.test/compilable/imports/imp21832.d
new file mode 100644
index 00000000000..ee4a1d6296d
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/imports/imp21832.d
@@ -0,0 +1,24 @@
+module imports.imp21832;
+static if(1)
+{
+ int fun(int a)
+ {
+ return a;
+ }
+ int tpl()(int a)
+ {
+ return a;
+ }
+}
+
+deprecated
+{
+ int fun(char a)
+ {
+ return a;
+ }
+ int tpl()(char a)
+ {
+ return a;
+ }
+}