Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag7477.d(13): Error: cannot generate 0 value of type `Foo` for `a`
5 fail_compilation/diag7477.d(20): Error: cannot generate 0 value of type `string` for `a`
6 ---
7 */
8
9 struct Foo { int x; }
10
11 enum Bar : Foo
12 {
13 a,
14 b,
15 c
16 }
17
18 enum Baz : string
19 {
20 a,
21 b,
22 }