Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail6107.d(12): Error: variable name `__ctor` is not allowed
5 fail_compilation/fail6107.d(12): identifiers starting with `__` are reserved for internal use
6 fail_compilation/fail6107.d(16): Error: variable name `__ctor` is not allowed
7 fail_compilation/fail6107.d(16): identifiers starting with `__` are reserved for internal use
8 ---
9 */
10 struct Foo
11 {
12 enum __ctor = 4;
13 }
14 class Bar
15 {
16 int __ctor = 4;
17 }