aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkSLGLSLTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SkSLGLSLTest.cpp')
-rw-r--r--tests/SkSLGLSLTest.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/SkSLGLSLTest.cpp b/tests/SkSLGLSLTest.cpp
index 27797b6189..0b9ed35006 100644
--- a/tests/SkSLGLSLTest.cpp
+++ b/tests/SkSLGLSLTest.cpp
@@ -1945,4 +1945,21 @@ DEF_TEST(SkSLIncompleteShortIntPrecision, r) {
SkSL::Program::kFragment_Kind);
}
+DEF_TEST(SkSLFrExp, r) {
+ test(r,
+ "void main() {"
+ " int exp;"
+ " float foo = frexp(0.5, exp);"
+ " sk_FragColor = float4(exp);"
+ "}",
+ *SkSL::ShaderCapsFactory::Default(),
+ "#version 400\n"
+ "out vec4 sk_FragColor;\n"
+ "void main() {\n"
+ " int exp;\n"
+ " float foo = frexp(0.5, exp);\n"
+ " sk_FragColor = vec4(float(exp));\n"
+ "}\n");
+}
+
#endif