Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail19319a.d

raw
1 /*
2 DFLAGS:
3 REQUIRED_ARGS: -conf= -Ifail_compilation/extra-files/minimal
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail19319a.d(16): Error: `7 ^^ g19319` requires `std.math` for `^^` operators
7 fail_compilation/fail19319a.d(17): Error: `g19319 ^^ 7` requires `std.math` for `^^` operators
8 ---
9 */
10
11 __gshared int g19319 = 0;
12
13 static assert(!__traits(compiles, 7 ^^ g19319));
14 static assert(!__traits(compiles, g19319 ^^= 7));
15
16 __gshared int e19319 = 7 ^^ g19319;
17 __gshared int a19319 = g19319 ^^= 7;;