diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test20656.d')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/test20656.d | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test20656.d b/gcc/testsuite/gdc.test/compilable/test20656.d new file mode 100644 index 00000000000..f68d6547026 --- /dev/null +++ b/gcc/testsuite/gdc.test/compilable/test20656.d @@ -0,0 +1,11 @@ +// https://issues.dlang.org/show_bug.cgi?id=20656 + +import core.stdc.stdlib : free, malloc; + +@live +void main() +{ + auto p = malloc(1); + free(p); + free(p); +} |