mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Fix 23410 - ImportC: binary constants not allowed
This commit is contained in:
parent
61d7d56a0b
commit
bf72f7d109
2 changed files with 2 additions and 4 deletions
|
@ -1992,8 +1992,6 @@ class Lexer
|
|||
break;
|
||||
case 'b':
|
||||
case 'B':
|
||||
if (Ccompile)
|
||||
error("binary constants not allowed");
|
||||
++p;
|
||||
base = 2;
|
||||
break;
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
/*
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/numliteral.c(10): Error: binary constants not allowed
|
||||
fail_compilation/numliteral.c(11): Error: embedded `_` not allowed
|
||||
---
|
||||
*/
|
||||
|
||||
int x = 0b00; // https://issues.dlang.org/show_bug.cgi?id=23410
|
||||
|
||||
// Test C-specific errors
|
||||
int x = 0b00;
|
||||
int y = 0_1;
|
||||
|
||||
// https://issues.dlang.org/show_bug.cgi?id=22549
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue