Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail54.d(27): Error: incompatible types for `(0) == (Exception)`: cannot use `==` with types
5 fail_compilation/fail54.d(28): Error: incompatible types for `("") == (int)`: cannot use `==` with types
6 fail_compilation/fail54.d(29): Error: incompatible types for `(true) == (int)`: cannot use `==` with types
7 fail_compilation/fail54.d(29): while evaluating: `static assert(true == (int))`
8 fail_compilation/fail54.d(30): Error: incompatible types for `(true) == (int[string])`: cannot use `==` with types
9 fail_compilation/fail54.d(30): while evaluating: `static assert(true == (int[string]))`
10 ---
11 */
12
13 // $HeadURL$
14 // $Date$
15 // $Author$
16
17 // @author@ zwang <[email protected]>
18 // @date@ 2005-02-03
19 // @uri@ news:[email protected]
20
21 // __DSTRESS_ELINE__ 14
22
23 module dstress.nocompile.bug_mtype_507_C;
24
25 void test()
26 {
27 0 == Exception;
28 "" == int;
29 static assert(is(int) == int);
30 static assert(is(int[string]) == int[string]);
31 }