Debian Codegraph @

gcc/testsuite/gdc.dg/imports/attributes.d

raw
1 // Pretend to be the GDC attributes module.
2 module gcc.attributes;
3
4 immutable value_ignored = 42;
5
6 enum type_symbol { _ }
7
8 auto template_symbol(A...)(A arguments)
9 {
10 return arguments;
11 }
12
13 struct struct_wrong_field
14 {
15 int bad_field;
16 }
17
18 struct struct_void_init
19 {
20 string name_field = "noinline";
21 int void_field = void;
22 string ignored;
23 }
24
25 struct unknown_attribute
26 {
27 string name_field = "made up name";
28 }