mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
18 lines
434 B
D
18 lines
434 B
D
/*
|
|
DFLAGS:
|
|
REQUIRED_ARGS: -conf= -Ifail_compilation/extra-files/minimal
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail19319b.d(16): Error: `7 ^^ x` requires `std.math` for `^^` operators
|
|
fail_compilation/fail19319b.d(17): Error: `x ^^ 7` requires `std.math` for `^^` operators
|
|
---
|
|
*/
|
|
|
|
void test19319(int x)
|
|
{
|
|
static assert(!__traits(compiles, 7 ^^ x));
|
|
static assert(!__traits(compiles, x ^^= 7));
|
|
|
|
int i = 7 ^^ x;
|
|
x ^^= 7;
|
|
}
|