summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/ddoc7.d
blob: 9c28d1b48030200de9689f93c8ef78ad3d7bac52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// PERMUTE_ARGS:
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh

//-----------------------------------------------
/// my enum
enum E1
{
    A, /// element a
    B  /// element b
}

/// my enum
enum E2
{
    /// element a
    A,
    /// element b
    B
}

/// my enum
enum E3
{
      A /// element a
    , B /// element b
}

/// my enum
enum E4
{
    A /// element a
    ,
    B /// element b
}

/// my enum
enum E5
{
    /// element a
    A
    ,
    /// element b
    B
}

/// Some doc
void foo() {}

/// More doc
alias foo bar;

/// asdf
class C
{
    /// Some doc
    abstract void foo();
}