From 3deaeb2dc0cfddfdf2e3b64736c860132619a051 Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Tue, 25 Apr 2017 14:42:11 -0400 Subject: sksl can now fold constant vector or matrix equality expressions Bug: skia: Change-Id: Icaddae68e53ed3629bcdc04b5f0b541d9e4398e2 Reviewed-on: https://skia-review.googlesource.com/14260 Commit-Queue: Ethan Nicholas Reviewed-by: Ben Wagner --- tests/SkSLErrorTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/SkSLErrorTest.cpp') diff --git a/tests/SkSLErrorTest.cpp b/tests/SkSLErrorTest.cpp index bd0c64a93b..47b9af8ee3 100644 --- a/tests/SkSLErrorTest.cpp +++ b/tests/SkSLErrorTest.cpp @@ -125,6 +125,9 @@ DEF_TEST(SkSLConstructorTypeMismatch, r) { test_failure(r, "struct foo { int x; } foo; void main() { vec2 x = vec2(foo); }", "error: 1: 'foo' is not a valid parameter to 'vec2' constructor\n1 error\n"); + test_failure(r, + "void main() { mat2 x = mat2(true); }", + "error: 1: expected 'float', but found 'bool'\n1 error\n"); } DEF_TEST(SkSLConstructorArgumentCount, r) { -- cgit v1.2.3