diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fix19059.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/fix19059.d | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fix19059.d b/gcc/testsuite/gdc.test/fail_compilation/fix19059.d new file mode 100644 index 00000000000..0be003a2f3b --- /dev/null +++ b/gcc/testsuite/gdc.test/fail_compilation/fix19059.d @@ -0,0 +1,19 @@ +/* +TEST_OUTPUT: +--- +fail_compilation/fix19059.d(16): Error: octal digit expected, not `8` +fail_compilation/fix19059.d(16): Error: octal literals larger than 7 are no longer supported +fail_compilation/fix19059.d(17): Error: octal digit expected, not `9` +fail_compilation/fix19059.d(17): Error: octal literals larger than 7 are no longer supported +fail_compilation/fix19059.d(18): Error: octal literals `010` are no longer supported, use `std.conv.octal!10` instead +--- + */ + +// https://issues.dlang.org/show_bug.cgi?id=19059 + +void foo() +{ + auto a = 08; + auto b = 09; + auto c = 010; +} |