fix gdb.base/access-mem-running.exp for clang testing
authorBruno Larsen <blarsen@redhat.com>
Wed, 20 Jul 2022 19:44:32 +0000 (16:44 -0300)
committerBruno Larsen <blarsen@redhat.com>
Mon, 12 Sep 2022 12:08:44 +0000 (14:08 +0200)
commit96ca89d245e262578ef565247c1d68dff493d8a3
tree6b607c72e1e9e34b1a64495d1dd251a4d339384a
parent8a0eb1994337e7140715bced108c92db06bef612
fix gdb.base/access-mem-running.exp for clang testing

Clang was optimizing global_var away because it was not being used
anywhere. this commit fixes that by adding the attribute used it.
gdb/testsuite/gdb.base/access-mem-running.c