added alias this test
This commit is contained in:
parent
086fc5bd73
commit
86cb518b27
|
@ -1,4 +1,3 @@
|
|||
//import foodata;
|
||||
import fooutils;
|
||||
|
||||
void hasArgname(Foo f){
|
||||
|
@ -8,3 +7,8 @@ void main()
|
|||
auto foo = Foo();
|
||||
foo.
|
||||
}
|
||||
|
||||
void aliasStruct() {
|
||||
auto intAliased = IntAliased();
|
||||
intAliased.
|
||||
}
|
||||
|
|
|
@ -4,6 +4,11 @@ struct Foo {
|
|||
void fooHey(){}
|
||||
}
|
||||
|
||||
struct IntAliased {
|
||||
int x;
|
||||
alias x this;
|
||||
}
|
||||
|
||||
void u(Foo foo) {}
|
||||
void ufcsHello(ref Foo foo) {}
|
||||
void ufcsBar(Foo foo, string mama) {}
|
||||
|
@ -13,4 +18,5 @@ void ufcsBarRefConstWrapped(ref const(Foo) foo, string mama) {}
|
|||
void ufcsBarRefImmuttableWrapped(ref immutable(Foo) foo, string mama) {}
|
||||
void ufcsBarScope(ref scope Foo foo, string mama) {}
|
||||
void ufcsBarReturnScope(return scope Foo foo, string mama) {}
|
||||
void ufcsSomeInt(int x) {}
|
||||
private void ufcsBarPrivate(Foo foo, string message) {}
|
|
@ -1,5 +1,8 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
../../bin/dcd-client $1 -c100 -I"$PWD"/fooutils file.d > actual.txt
|
||||
diff actual.txt expected.txt
|
||||
../../bin/dcd-client $1 -c82 -I"$PWD"/fooutils file.d > actual_struct_test.txt
|
||||
diff actual_struct_test.txt expected_struct_test.txt
|
||||
|
||||
../../bin/dcd-client $1 -c152 -I"$PWD"/fooutils file.d > actual_aliased_struct_test.txt
|
||||
diff actual_aliased_struct_test.txt expected_aliased_struct_test.txt
|
Loading…
Reference in New Issue