summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxxabi/test/catch_array_01.pass.cpp5
-rw-r--r--libcxxabi/test/catch_function_01.pass.cpp4
-rw-r--r--libcxxabi/test/catch_member_function_pointer_01.pass.cpp3
3 files changed, 12 insertions, 0 deletions
diff --git a/libcxxabi/test/catch_array_01.pass.cpp b/libcxxabi/test/catch_array_01.pass.cpp
index 4997602a6d0..933e4b28f60 100644
--- a/libcxxabi/test/catch_array_01.pass.cpp
+++ b/libcxxabi/test/catch_array_01.pass.cpp
@@ -9,6 +9,11 @@
// Can you have a catch clause of array type that catches anything?
+
+// GCC incorrectly allows array types to be caught by reference.
+// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69372
+// XFAIL: gcc
+
#include <cassert>
int main()
diff --git a/libcxxabi/test/catch_function_01.pass.cpp b/libcxxabi/test/catch_function_01.pass.cpp
index 087fce44c70..1bdda69f1af 100644
--- a/libcxxabi/test/catch_function_01.pass.cpp
+++ b/libcxxabi/test/catch_function_01.pass.cpp
@@ -9,6 +9,10 @@
// Can you have a catch clause of array type that catches anything?
+// GCC incorrectly allows function pointer to be caught by reference.
+// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69372
+// XFAIL: gcc
+
#include <cassert>
template <class Tp>
diff --git a/libcxxabi/test/catch_member_function_pointer_01.pass.cpp b/libcxxabi/test/catch_member_function_pointer_01.pass.cpp
index 28b13cc6709..9b817304c0c 100644
--- a/libcxxabi/test/catch_member_function_pointer_01.pass.cpp
+++ b/libcxxabi/test/catch_member_function_pointer_01.pass.cpp
@@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
+// GCC incorrectly allows PMF type "void (T::*)()" to be caught as "void (T::*)() const"
+// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69375
+// XFAIL: gcc
#include <cassert>
struct A
OpenPOWER on IntegriCloud