We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const_val
1 parent 808720b commit de84898Copy full SHA for de84898
source/compiler/tests/const_static.inc
@@ -1,6 +1,8 @@
1
-const static const_val = 0;
+const static const_val = 2;
2
3
-PrintConstVal()
+UseConstVal()
4
{
5
+ new a[const_val] = { 0, 1 };
6
+ #pragma unused a
7
printf("%d", const_val);
8
}
source/compiler/tests/const_static.pwn
@@ -3,7 +3,7 @@
main()
- PrintConstVal();
+ UseConstVal();
printf("%d", const_val); // error 017: undefined symbol "const_val"
9
// A combination of "const static" can't be used for local constants.
0 commit comments