updating dcd tests

This commit is contained in:
davu 2023-03-12 19:17:52 +01:00 committed by Jan Jurzitza
parent a739070310
commit 6c3c67fa2f
6 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,14 @@
class Bar
{
void fun(A param)
{
}
}
class Foo
{
void foo(Bar bar)
{
bar.fun(
}
}

View File

@ -1,5 +1,5 @@
set -e set -e
set -u set -u
../../bin/dcd-client $1 -c66 <<< "class Bar{void fun(A param){}}class Foo{void foo(Bar bar){bar.fun(}}" > actual.txt ../../bin/dcd-client $1 file.d -c84 > actual.txt
diff actual.txt expected.txt --strip-trailing-cr diff actual.txt expected.txt --strip-trailing-cr

View File

@ -1,6 +1,7 @@
identifiers identifiers
alignof k alignof k
b v b v
bar F
init k init k
mangleof k mangleof k
sizeof k sizeof k

View File

@ -2,6 +2,7 @@ identifiers
__monitor v __monitor v
__vptr v __vptr v
alignof k alignof k
bar F
classinfo v classinfo v
e v e v
init k init k

View File

@ -2,6 +2,8 @@ void showSomething(int x, string message, bool ok){}
void showSomething(int x, string message, bool ok, float percentage){} void showSomething(int x, string message, bool ok, float percentage){}
void showSomething(string x, string message, bool ok){} void showSomething(string x, string message, bool ok){}
void showSomething(){} void showSomething(){}
void showSomething(){}
void showNothing(int x){}
int showSomething; int showSomething;
struct showSomething { int x; } struct showSomething { int x; }

View File

@ -1,5 +1,5 @@
set -e set -e
set -u set -u
../../bin/dcd-client $1 -c293 file.d > actual.txt ../../bin/dcd-client $1 -c342 file.d > actual.txt
diff actual.txt expected.txt --strip-trailing-cr diff actual.txt expected.txt --strip-trailing-cr