/
hdrgen_dip1029.d
76 lines (66 loc) · 994 Bytes
/
hdrgen_dip1029.d
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
REQUIRED_ARGS: -o- -Hf${RESULTS_DIR}/compilable/hdrgen_dip1029.di
PERMUTE_ARGS:
OUTPUT_FILES: ${RESULTS_DIR}/compilable/hdrgen_dip1029.di
TEST_OUTPUT:
---
=== ${RESULTS_DIR}/compilable/hdrgen_dip1029.di
// D import file generated from 'compilable/hdrgen_dip1029.d'
module foo.bar.foobar.baz;
void foo();
throw void foobar();
nothrow void bar();
nothrow
{
throw void n_t();
void n();
}
void _t();
throw void t();
struct S
{
throw void foo();
}
class CA
{
void foo();
}
class CB : CA
{
override @nogc void foo();
}
nothrow
{
void t2();
throw nothrow void n2();
}
---
*/
module foo.bar.foobar.baz;
void foo() {}
void foobar() throw {}
void bar() nothrow {}
nothrow {
void n_t() throw;
void n();
}
void _t();
void t() throw;
struct S {
void foo() {
_t();
t();
n_t();
}
}
// class inheritance
class CA {
void foo() throw;
}
class CB : CA {
override void foo() @nogc;
}
nothrow:
void t2() throw;
throw:
void n2() nothrow;