aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkSLErrorTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SkSLErrorTest.cpp')
-rw-r--r--tests/SkSLErrorTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/SkSLErrorTest.cpp b/tests/SkSLErrorTest.cpp
index 9c43ac5197..c24a25d832 100644
--- a/tests/SkSLErrorTest.cpp
+++ b/tests/SkSLErrorTest.cpp
@@ -245,6 +245,12 @@ DEF_TEST(SkSLBinaryTypeMismatch, r) {
test_failure(r,
"void main() { bool x = 1 || 2.0; }",
"error: 1: type mismatch: '||' cannot operate on 'int', 'float'\n1 error\n");
+ test_failure(r,
+ "void main() { bool x = float2(0) == 0; }",
+ "error: 1: type mismatch: '==' cannot operate on 'float2', 'int'\n1 error\n");
+ test_failure(r,
+ "void main() { bool x = float2(0) != 0; }",
+ "error: 1: type mismatch: '!=' cannot operate on 'float2', 'int'\n1 error\n");
}
DEF_TEST(SkSLCallNonFunction, r) {