diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/runnable/test20565.d')
-rw-r--r-- | gcc/testsuite/gdc.test/runnable/test20565.d | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/runnable/test20565.d b/gcc/testsuite/gdc.test/runnable/test20565.d new file mode 100644 index 00000000000..47a8db34342 --- /dev/null +++ b/gcc/testsuite/gdc.test/runnable/test20565.d @@ -0,0 +1,18 @@ +// https://issues.dlang.org/show_bug.cgi?id=20565 + +void main() +{ + { + int temp(T)() { return 3; } + assert(temp!int() == 3); + } + { + int temp(T)() { return 4; } + assert(temp!int() == 4); + } + { + int temp(T)() { return 5; } + assert(temp!int() == 5); + } +} + |