Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon] / src / tests / vm / child-linear.c
index eca3e3f5a19dac0305319104ae15f5e8cb0e7ea5..cdbe82e897bca71acaf714680275d648e0161c9e 100644 (file)
@@ -7,8 +7,6 @@
 #include "tests/lib.h"
 #include "tests/main.h"
 
-const char *test_name = "child-linear";
-
 #define SIZE (1024 * 1024)
 static char buf[SIZE];
 
@@ -19,6 +17,8 @@ main (int argc, char *argv[])
   struct arc4 arc4;
   size_t i;
 
+  test_name = "child-linear";
+
   /* Encrypt zeros. */
   arc4_init (&arc4, key, strlen (key));
   arc4_crypt (&arc4, buf, SIZE);