From 599129dea6930cf64a403e5e0dbd7cc7293df8af Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 26 Apr 2021 16:15:54 -0400 Subject: Matrix tests and assorted bug tests (#1814) * #include an absolute path didn't work - because paths were taken to always be relative. * Some test around matrix layout. * A test for problem with C++ code output. * Default should be column major CPU/CUDA tests confused this. * Added column-major test * Small fixes around tabs/comments * Diagnostic problem for init of vector type with inappropriate params. * Test demonstrating inconsistency between GPU and 'CPU-like' non square matrices. * Added column major non square test. * Remove vector mismatch - because ambiguity is arguably reasonable because float can silently promote to a vector. * Small typo fixes for non-square-column-major.slang --- tests/current-bugs/missing-loc-on-assignment.slang.expected | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/current-bugs/missing-loc-on-assignment.slang.expected (limited to 'tests/current-bugs/missing-loc-on-assignment.slang.expected') diff --git a/tests/current-bugs/missing-loc-on-assignment.slang.expected b/tests/current-bugs/missing-loc-on-assignment.slang.expected new file mode 100644 index 000000000..021701be9 --- /dev/null +++ b/tests/current-bugs/missing-loc-on-assignment.slang.expected @@ -0,0 +1,6 @@ +result code = -1 +standard error = { +(0): error 30019: expected an expression of type 'vector', got 'matrix' +} +standard output = { +} -- cgit v1.2.3