summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/ddoc7656.d
blob: 7a0ef0df3ce6c60153ef2650523f8f134ee4090a (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
// PERMUTE_ARGS:
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 7656

module ddoc7656;

/**
--------
int x; // This is a $ comment (and here is some
int y; // more information about that comment)
--------
*/
void main() { }


/**
(Regression check)

Example:
----
assert(add(1, 1) == 2);
----
*/
int add(int a, int b) { return a + b; }