mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
21 lines
652 B
D
21 lines
652 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fix19018.d(16): Error: `0b` isn't a valid integer literal, use `0b0` instead
|
|
fail_compilation/fix19018.d(17): Error: `0B` isn't a valid integer literal, use `0B0` instead
|
|
fail_compilation/fix19018.d(18): Error: `0x` isn't a valid integer literal, use `0x0` instead
|
|
fail_compilation/fix19018.d(19): Error: `0X` isn't a valid integer literal, use `0X0` instead
|
|
fail_compilation/fix19018.d(20): Error: `0x_` isn't a valid integer literal, use `0x0` instead
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=19018
|
|
|
|
void foo()
|
|
{
|
|
auto a = 0b;
|
|
auto b = 0B;
|
|
auto c = 0x;
|
|
auto d = 0X;
|
|
auto e = 0x_;
|
|
}
|