Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon] / src / tests / userprog / child-simple.c
index 0d2dacf704f253d352c55288f48156370528c510..06cce89807522854de383ee864d278b2eac88b3a 100644 (file)
@@ -5,11 +5,11 @@
 #include <stdio.h>
 #include "tests/lib.h"
 
-const char *test_name = "child-simple";
-
 int
 main (void) 
 {
+  test_name = "child-simple";
+
   msg ("run");
   return 81;
 }