Debian Codegraph @

gcc/testsuite/gdc.test/compilable/ddoc9.d

raw
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
3 // POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
4
5 // https://issues.dlang.org/show_bug.cgi?id=273
6
7 /// Template Documentation (OK)
8 template Template(T) { }
9
10 /// Function Documentation (Not included at all by DDoc)
11 void Function(T)(T x) { }
12
13 /// Class Documentation (OK)
14 class Class(T) { }
15
16 /// Struct Documentation
17 struct Struct(T) { }
18
19 /// Union Documentation
20 union Union(T) { }
21
22 /// Template documentation with anonymous enum
23 template TemplateWithAnonEnum(T)
24 {
25 enum { TemplateWithAnonEnum = 1 }
26 }