mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
488 B
Makefile
17 lines
488 B
Makefile
/*
|
|
DFLAGS:
|
|
REQUIRED_ARGS: -conf= -Ifail_compilation/extra-files/minimal
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail19319a.d(16): Error: `7 ^^ g19319` requires `std.math` for `^^` operators
|
|
fail_compilation/fail19319a.d(17): Error: `g19319 ^^ 7` requires `std.math` for `^^` operators
|
|
---
|
|
*/
|
|
|
|
__gshared int g19319 = 0;
|
|
|
|
static assert(!__traits(compiles, 7 ^^ g19319));
|
|
static assert(!__traits(compiles, g19319 ^^= 7));
|
|
|
|
__gshared int e19319 = 7 ^^ g19319;
|
|
__gshared int a19319 = g19319 ^^= 7;;
|