Message ID | 20150121161530.GF3360@redhat.com |
---|---|
State | New |
Headers | show |
commit b4d3e97d1890a1870f43e95aee493a5bb540e6f2 Author: Jonathan Wakely <jwakely@redhat.com> Date: Wed Jan 21 14:28:37 2015 +0000 * testsuite/29_atomics/atomic/64658.cc: Test stored value. diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/64658.cc b/libstdc++-v3/testsuite/29_atomics/atomic/64658.cc index 64739e0..0b2ff43 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic/64658.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic/64658.cc @@ -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 ); }