]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Put this back in global scope, we have a local scope test
authorDale Weiler <weilercdale@gmail.com>
Sun, 25 May 2014 00:36:09 +0000 (20:36 -0400)
committerDale Weiler <weilercdale@gmail.com>
Sun, 25 May 2014 00:36:09 +0000 (20:36 -0400)
tests/inexact.qc

index a17cccddcc73e467e632fde908c80fc78dc2e249..11dc2c62521d0ce9e87ffb8f898f214f647a9edd 100644 (file)
@@ -1,6 +1,7 @@
+const float a = 1.0 / 3.0;
+const float b = 0.33333333333;
+
 void main() {
-    const float a = 1.0 / 3.0;
-    const float b = 0.33333333333;
     if (a == b) {
         // Should trigger warning
     }