updating dcd tests
This commit is contained in:
parent
a739070310
commit
6c3c67fa2f
|
@ -0,0 +1,14 @@
|
|||
class Bar
|
||||
{
|
||||
void fun(A param)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
class Foo
|
||||
{
|
||||
void foo(Bar bar)
|
||||
{
|
||||
bar.fun(
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
set -e
|
||||
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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
identifiers
|
||||
alignof k
|
||||
b v
|
||||
bar F
|
||||
init k
|
||||
mangleof k
|
||||
sizeof k
|
||||
|
|
|
@ -2,6 +2,7 @@ identifiers
|
|||
__monitor v
|
||||
__vptr v
|
||||
alignof k
|
||||
bar F
|
||||
classinfo v
|
||||
e v
|
||||
init k
|
||||
|
|
|
@ -2,6 +2,8 @@ void showSomething(int x, string message, bool ok){}
|
|||
void showSomething(int x, string message, bool ok, float percentage){}
|
||||
void showSomething(string x, string message, bool ok){}
|
||||
void showSomething(){}
|
||||
void showSomething(){}
|
||||
void showNothing(int x){}
|
||||
int showSomething;
|
||||
struct showSomething { int x; }
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
set -e
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue