summaryrefslogtreecommitdiff
path: root/tests/test_atomic_include.template
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_atomic_include.template')
-rw-r--r--tests/test_atomic_include.template5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_atomic_include.template b/tests/test_atomic_include.template
index f665aac..a9e1895 100644
--- a/tests/test_atomic_include.template
+++ b/tests/test_atomic_include.template
@@ -457,9 +457,12 @@ void test_atomicXX(void)
if (zz == 25) zz = 117;
# endif
TA_assert(zz == 117);
-# if defined(AO_HAVE_double_loadXX)
+# if defined(AO_HAVE_double_loadXX) || defined(AO_HAVE_double_storeXX)
+ /* Initialize old_w even for store to workaround MSan warning. */
old_w.AO_val1 = 3316;
old_w.AO_val2 = 2921;
+# endif
+# if defined(AO_HAVE_double_loadXX)
new_w = AO_double_loadXX(&old_w);
TA_assert(new_w.AO_val1 == 3316 && new_w.AO_val2 == 2921);
# elif !defined(AO_HAVE_double_load) \