]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/inexact-local.qc
Merge branch 'arithmetic_exceptions' into cooking
[xonotic/gmqcc.git] / tests / inexact-local.qc
diff --git a/tests/inexact-local.qc b/tests/inexact-local.qc
new file mode 100644 (file)
index 0000000..a17cccd
--- /dev/null
@@ -0,0 +1,7 @@
+void main() {
+    const float a = 1.0 / 3.0;
+    const float b = 0.33333333333;
+    if (a == b) {
+        // Should trigger warning
+    }
+}