* testsuite/29_atomics/atomic/64658.cc: Test stored value.

From-SVN: r219952
This commit is contained in:
Jonathan Wakely 2015-01-21 16:17:17 +00:00 committed by Jonathan Wakely
parent 4005b96a70
commit deff1f4105
2 changed files with 7 additions and 2 deletions

View 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.

View File

@ -17,13 +17,14 @@
// { 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 );
}