Test cases for struct constructors
This commit is contained in:
parent
57b9f3d3b6
commit
ffe2e78896
|
@ -0,0 +1,7 @@
|
||||||
|
identifiers
|
||||||
|
alignof k
|
||||||
|
init k
|
||||||
|
mangleof k
|
||||||
|
sizeof k
|
||||||
|
stringof k
|
||||||
|
tupleof k
|
|
@ -0,0 +1,2 @@
|
||||||
|
calltips
|
||||||
|
this(int a, int c)
|
|
@ -0,0 +1,24 @@
|
||||||
|
struct B
|
||||||
|
{
|
||||||
|
int a;
|
||||||
|
void b();
|
||||||
|
int c;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct A
|
||||||
|
{
|
||||||
|
this()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
A.
|
||||||
|
}
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
auto b = B(
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
../../bin/dcd-client file.d -c84 > actual1.txt
|
||||||
|
diff actual1.txt expected1.txt
|
||||||
|
|
||||||
|
../../bin/dcd-client file.d -c111 > actual2.txt
|
||||||
|
diff actual2.txt expected2.txt
|
Loading…
Reference in New Issue