Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag10783.d(15): Error: no property `type` for `event` of type `diag10783.Event`
5 fail_compilation/diag10783.d(10): struct `Event` defined here
6 fail_compilation/diag10783.d(15): Error: undefined identifier `En`
7 ---
8 */
9
10 struct Event { }
11
12 void main()
13 {
14 Event event;
15 switch (event.type) with (En)
16 {
17 default:
18 }
19 }