XFAIL aligned allocation tests for older Clang versions
authorEric Fiselier <eric@efcs.ca>
Fri, 14 Oct 2016 08:47:09 +0000 (08:47 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 14 Oct 2016 08:47:09 +0000 (08:47 +0000)
llvm-svn: 284214

libcxx/test/libcxx/test/config.py
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow_replace.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_replace.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t_nothrow.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t_nothrow_replace.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t_replace.pass.cpp

index 9b1ded4..6655743 100644 (file)
@@ -315,6 +315,10 @@ class Configuration(object):
 
         if self.cxx.hasCompileFlag('-faligned-allocation'):
             self.config.available_features.add('-faligned-allocation')
+        else:
+            # FIXME remove this once more than just clang-4.0 support
+            # C++17 aligned allocation.
+            self.config.available_features.add('no-aligned-allocation')
 
         if self.get_lit_bool('has_libatomic', False):
             self.config.available_features.add('libatomic')
index 69be9b3..1d2f799 100644 (file)
@@ -9,11 +9,13 @@
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
 
-// test operator new
-
 // asan and msan will not call the new handler.
 // UNSUPPORTED: sanitizer-new-delete
 
+// XFAIL: no-aligned-allocation
+
+// test operator new
+
 #include <new>
 #include <cstddef>
 #include <cassert>
index 76b5034..d4b1493 100644 (file)
@@ -9,11 +9,13 @@
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
 
-// test operator new (nothrow)
-
 // asan and msan will not call the new handler.
 // UNSUPPORTED: sanitizer-new-delete
 
+// XFAIL: no-aligned-allocation
+
+// test operator new (nothrow)
+
 #include <new>
 #include <cstddef>
 #include <cstdint>
index 48ea3fd..800318d 100644 (file)
@@ -8,10 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: sanitizer-new-delete
 
-// test operator new nothrow by replacing only operator new
+// XFAIL: no-aligned-allocation
 
-// UNSUPPORTED: sanitizer-new-delete
+// test operator new nothrow by replacing only operator new
 
 #include <new>
 #include <cstddef>
@@ -19,7 +20,6 @@
 #include <cassert>
 #include <limits>
 
-
 constexpr auto OverAligned = alignof(std::max_align_t) * 2;
 
 int A_constructed = 0;
index 6ea23ff..898d4aa 100644 (file)
@@ -8,10 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: sanitizer-new-delete
 
-// test operator new replacement
+// XFAIL: no-aligned-allocation
 
-// UNSUPPORTED: sanitizer-new-delete
+// test operator new replacement
 
 #include <new>
 #include <cstddef>
index 1be78fb..a0caeea 100644 (file)
@@ -9,11 +9,13 @@
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
 
-// test operator new
-
 // asan and msan will not call the new handler.
 // UNSUPPORTED: sanitizer-new-delete
 
+// XFAIL: no-aligned-allocation
+
+// test operator new
+
 #include <new>
 #include <cstddef>
 #include <cassert>
index 89e5dc8..4e492e0 100644 (file)
@@ -9,11 +9,13 @@
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
 
-// test operator new (nothrow)
-
 // asan and msan will not call the new handler.
 // UNSUPPORTED: sanitizer-new-delete
 
+// XFAIL: no-aligned-allocation
+
+// test operator new (nothrow)
+
 #include <new>
 #include <cstddef>
 #include <cstdint>
index fc37677..8348240 100644 (file)
@@ -8,11 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
-
-// test operator new nothrow by replacing only operator new
-
 // UNSUPPORTED: sanitizer-new-delete
 
+// XFAIL: no-aligned-allocation
+
+// test operator new nothrow by replacing only operator new
 
 #include <new>
 #include <cstddef>
index dd6fc67..8aecc2d 100644 (file)
@@ -8,10 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14
+// UNSUPPORTED: sanitizer-new-delete
 
-// test operator new replacement
+// XFAIL: no-aligned-allocation
 
-// UNSUPPORTED: sanitizer-new-delete
+// test operator new replacement
 
 #include <new>
 #include <cstddef>