From 831c1129547c973c59ccb957ed9fe0cf74102477 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 15 Dec 2015 00:32:21 +0000 Subject: 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 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 --- .../std/atomics/atomics.types.generic/trivially_copyable.fail.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcxx/test/std/atomics') 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 +template void test ( T t ) { std::atomic t0(t); - } +} int main() { -- cgit v1.2.3