extended array & pointer tests
This commit is contained in:
parent
996141cc1b
commit
109d56b248
|
@ -1,6 +1,7 @@
|
|||
identifiers
|
||||
alignof k
|
||||
arrayStuff F
|
||||
arrayStuff1 F
|
||||
arrayStuff7 F
|
||||
doArray F
|
||||
dup k
|
||||
idup k
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
void arrayStuff(int[] x) { }
|
||||
void arrayStuff1(int[] x) { }
|
||||
void arrayStuff2(long[] x) { }
|
||||
void arrayStuff3(uint[] x) { }
|
||||
void arrayStuff4(T)(T[] x) { }
|
||||
void arrayStuff5(int[][] x) { }
|
||||
void arrayStuff6(int*[] x) { }
|
||||
void arrayStuff7(const(int)[] x) { }
|
||||
void doArray(int[] x, int[] y)
|
||||
{
|
||||
y.
|
||||
}
|
||||
// TODO: arrayStuff4 isn't included yet, since we don't really process
|
||||
// templates, but should be!
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
../../bin/dcd-client $1 -c65 file.d > actual_array_test.txt
|
||||
../../bin/dcd-client $1 -c259 file.d > actual_array_test.txt
|
||||
diff actual_array_test.txt expected_array_test.txt
|
|
@ -1,7 +1,8 @@
|
|||
identifiers
|
||||
alignof k
|
||||
doIncrement F
|
||||
increment F
|
||||
increment1 F
|
||||
increment7 F
|
||||
init k
|
||||
mangleof k
|
||||
max k
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
void increment(int* x) { }
|
||||
void increment1(int* x) { }
|
||||
void increment2(long* x) { }
|
||||
void increment3(uint* x) { }
|
||||
void increment4(T)(T* x) { }
|
||||
void increment5(int** x) { }
|
||||
void increment6(int[]* x) { }
|
||||
void increment7(const(int)* x) { }
|
||||
void doIncrement(int* x, int* y)
|
||||
{
|
||||
y.
|
||||
// TODO: increment4 isn't included yet, since we don't really process
|
||||
// templates, but should be!
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
../../bin/dcd-client $1 -c65 file.d > actual_pointer_test.txt
|
||||
../../bin/dcd-client $1 -c247 file.d > actual_pointer_test.txt
|
||||
diff actual_pointer_test.txt expected_pointer_test.txt
|
Loading…
Reference in New Issue