d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / ddoc11.d
blob3fcf2ca00da5cd8c5d6a20cb3defcde8b20e55f7
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o-
3 // POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
5 /// The various floating point exceptions
6 enum
8 FE_INVALID = 1, ///
9 FE_DENORMAL = 2, ///
10 FE_DIVBYZERO = 4, ///
11 FE_OVERFLOW = 8, ///
12 FE_UNDERFLOW = 0x10, ///
13 FE_INEXACT = 0x20, ///
14 FE_ALL_EXCEPT = 0x3F, /// Mask of all the exceptions
17 alias int myint;
19 ///
20 myint bar;
22 ///
23 myint foo(myint x = myint.max)
25 return x;
29 ///
30 class Foo
32 ///
33 this(string s) { }
37 extern (C):
39 ///
40 struct div_t { int quot,rem; }
41 ///
42 struct ldiv_t { int quot,rem; }
43 ///
44 struct lldiv_t { long quot,rem; }
46 div_t div(int,int); ///
47 ldiv_t ldiv(int,int); ///
48 lldiv_t lldiv(long, long); ///
52 void *calloc(size_t, size_t); ///
53 void *malloc(size_t); /// dittx
55 /**
56 Example:
57 ---
58 private:
59 int i = 0;
60 ---
62 void test1()