summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/atomics
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-12-15 00:32:21 +0000
committerEric Fiselier <eric@efcs.ca>2015-12-15 00:32:21 +0000
commit831c1129547c973c59ccb957ed9fe0cf74102477 (patch)
tree0d8401a637def77e3c22c09f8a9f9a1d92c7da33 /libcxx/test/std/atomics
parenta386358c3697676d4fea4dd80fd6057793284c64 (diff)
downloadbcm5719-llvm-831c1129547c973c59ccb957ed9fe0cf74102477.tar.gz
bcm5719-llvm-831c1129547c973c59ccb957ed9fe0cf74102477.zip
Fix various GCC mis-configurations for newer versions.
This patch goes through and enables C++11 and C++14 features for newer GCC's. The main changes are: 1. Turn on variable templates. (Uses __cpp_variable_templates) 2. Assert atomic<Tp> is trivially copyable (Uses _GNUC_VER >= 501). 3. Turn on trailing return support for GCC. (Uses _GNUC_VER >= 404) 4. XFAIL void_t test for GCC 5.1 and 5.2. Fixed in GCC 6. llvm-svn: 255585
Diffstat (limited to 'libcxx/test/std/atomics')
-rw-r--r--libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.fail.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.fail.cpp b/libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.fail.cpp
index f2bf4db0de4..d940980e32f 100644
--- a/libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.fail.cpp
+++ b/libcxx/test/std/atomics/atomics.types.generic/trivially_copyable.fail.cpp
@@ -57,12 +57,12 @@ struct NotTriviallyCopyable {
NotTriviallyCopyable ( int i ) : i_(i) {}
NotTriviallyCopyable ( const NotTriviallyCopyable &rhs) : i_(rhs.i_) {}
int i_;
- };
+};
-template <class T>
+template <class T, class >
void test ( T t ) {
std::atomic<T> t0(t);
- }
+}
int main()
{
OpenPOWER on IntegriCloud