]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail11445.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail11445.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail11445.d(11): Error: incompatible types for ((a) + (b)): 'double[string]' and 'double[string]'
5 ---
6 */
7
8 void main() {
9 double[string] a = [ "foo" : 22.2 ];
10 double[string] b = [ "bar" : 22.2 ];
11 auto c = a + b;
12 }