gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / gcore.c
index d6acc1f9b9c0a1f1b2a008855da0fd5b0382cccb..42022495974d88d9d678969b8346bf8ec1f0fe61 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2002-2015 Free Software Foundation, Inc.
+/* Copyright 2002-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -46,6 +46,8 @@ array_func ()
       un_initialized_array[i] = extern_array[i] + 8;
       local_array[i] = extern_array[i] + 12;
     }
+  /* Reference static_array so that clang doesn't discard it.  */
+  (void) static_array[0];
   terminal_func ();
 }
 
This page took 0.026912 seconds and 4 git commands to generate.