* testsuite/29_atomics/atomic/64658.cc: Test stored value.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 21 Jan 2015 16:17:17 +0000 (16:17 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 21 Jan 2015 16:17:17 +0000 (16:17 +0000)
From-SVN: r219952

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/29_atomics/atomic/64658.cc

index 2c9c40ad0e9728024255e5bc0333aac3965d333a..8ab71d90296c155b8541e993bcd6dc4744fa7eb0 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/29_atomics/atomic/64658.cc: Test stored value.
+
 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
 
        * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
index 64739e0c1de7580a795612e2ecb99d96598b091f..0b2ff43ff197cbb269e01c4f9a84f9ba27f0d170 100644 (file)
 
 // { dg-require-atomic-builtins "" }
 // { dg-options "-std=gnu++11" }
-// { dg-do link }
 
 #include <atomic>
+#include <testsuite_hooks.h>
 
 int
 main()
 {
   std::atomic<int> i;
-  atomic_init(&i, 0);
+  atomic_init(&i, 5);
+  VERIFY( i == 5 );
 }