MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag1566.d
blob28ffc8d48d5b6222ada7d74a8dc56bf2974df65b
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag1566.d(23): Error: multiple ! arguments are not allowed
5 fail_compilation/diag1566.d(24): Error: multiple ! arguments are not allowed
6 fail_compilation/diag1566.d(25): Error: multiple ! arguments are not allowed
7 fail_compilation/diag1566.d(26): Error: multiple ! arguments are not allowed
8 fail_compilation/diag1566.d(28): Error: multiple ! arguments are not allowed
9 fail_compilation/diag1566.d(29): Error: multiple ! arguments are not allowed
10 ---
13 template T(int n)
15 template T(char c)
17 alias long T;
21 void main()
23 static assert(is(long == T!(3)!('b')));
24 static assert(is(long == T! 3 ! 'b' ));
25 static assert(is(long == T!(3)! 'b' ));
26 static assert(is(long == T! 3 !('b')));
28 static assert(is(long == T!(3)! 'b' !"s"));
29 static assert(is(long == T! 3 !('b')!"s"));