Debian Codegraph @

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

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test16443.d(10): Error: incompatible types for `(null) + (null)`: both operands are of type `typeof(null)`
4 fail_compilation/test16443.d(11): Error: incompatible types for `(null) - (null)`: both operands are of type `typeof(null)`
5 ---
6 */
7
8 void foo()
9 {
10 auto a = null + null;
11 auto b = null - null;
12 }