Commit deff1f41 by Jonathan Wakely Committed by Jonathan Wakely

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

From-SVN: r219952
parent 4005b96a
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.
......
......@@ -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 );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment