From 163c4b99a4bef8746fc9d3caa8dc6c54c11d4955 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 22 Jun 2017 08:45:38 +0200 Subject: [PATCH 1/1] tests: add check for vector negation --- tests/vecmath.qc | 5 +++++ tests/vecmath.tmpl | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/vecmath.qc create mode 100644 tests/vecmath.tmpl diff --git a/tests/vecmath.qc b/tests/vecmath.qc new file mode 100644 index 0000000..5a656bf --- /dev/null +++ b/tests/vecmath.qc @@ -0,0 +1,5 @@ +void main(vector vin) { + stov("'15 43 0'"); // set OFS_RETURN + vector v2 = -vin; + print(vtos(v2), "\n"); +} diff --git a/tests/vecmath.tmpl b/tests/vecmath.tmpl new file mode 100644 index 0000000..8bcea3a --- /dev/null +++ b/tests/vecmath.tmpl @@ -0,0 +1,6 @@ +I: vecmath.qc +D: previously problematic vector math +T: -execute +C: -std=gmqcc -fftepp +E: -vector '5 5 5' +M: '-5 -5 -5' -- 2.39.2