Test cases for struct constructors

This commit is contained in:
Hackerpilot 2015-08-21 16:36:30 -07:00
parent 57b9f3d3b6
commit ffe2e78896
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,7 @@
identifiers
alignof k
init k
mangleof k
sizeof k
stringof k
tupleof k

View File

@ -0,0 +1,2 @@
calltips
this(int a, int c)

24
tests/tc019/file.d Normal file
View File

@ -0,0 +1,24 @@
struct B
{
int a;
void b();
int c;
}
struct A
{
this()
{
}
}
unittest
{
A.
}
unittest
{
auto b = B(
}

8
tests/tc019/run.sh Executable file
View File

@ -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