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 -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue