diff options
Diffstat (limited to 'tests/SkSLSPIRVTest.cpp')
-rw-r--r-- | tests/SkSLSPIRVTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/SkSLSPIRVTest.cpp b/tests/SkSLSPIRVTest.cpp index ba4697d191..f688d50baa 100644 --- a/tests/SkSLSPIRVTest.cpp +++ b/tests/SkSLSPIRVTest.cpp @@ -32,10 +32,12 @@ static void test_failure(skiatest::Reporter* r, const char* src, const char* err DEF_TEST(SkSLBadOffset, r) { test_failure(r, - "struct Bad { layout (offset = 5) int x; } bad; void main() { bad.x = 5; }", + "struct Bad { layout (offset = 5) int x; } bad; void main() { bad.x = 5; " + "sk_FragColor.r = float(bad.x); }", "error: 1: offset of field 'x' must be a multiple of 4\n1 error\n"); test_failure(r, - "struct Bad { int x; layout (offset = 0) int y; } bad; void main() { bad.x = 5; }", + "struct Bad { int x; layout (offset = 0) int y; } bad; void main() { bad.x = 5; " + "sk_FragColor.r = float(bad.x); }", "error: 1: offset of field 'y' must be at least 4\n1 error\n"); } |