MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail34.d
blob7a3c8071867d8e62b5b695ad17d0c0afe873754a
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail34.d(31): Error: duplicate `case "123"` in `switch` statement
5 ---
6 */
8 // $HeadURL$
9 // $Date$
10 // $Author$
12 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
13 // @date@ 2004-11-17
14 // @uri@ news:u1gr62-kjv.ln1@kuehne.cn
15 // @url@ nntp://digitalmars.com/digitalmars.D.bugs/2288
17 // duplicate case "123" in switch statement
19 module switch_12;
21 int main()
23 string array = "123";
24 switch(array)
26 case "123":
28 assert(0);
29 break;
31 case "123":
33 assert(1);
34 break;
36 default:
38 return -1; // dummy
41 return 0;