Suppress warnings about the operations currently under test.

llvm-svn: 272819
This commit is contained in:
Eric Fiselier 2016-06-15 19:07:19 +00:00
parent 9d305d707e
commit f5ff11c432
8 changed files with 54 additions and 0 deletions

View File

@ -19,6 +19,13 @@
#include <stdlib.h>
#include <assert.h>
// Clang emits warnings about exceptions of type 'Child' being caught by
// an earlier handler of type 'Base'. Congrats clang, you've just
// diagnosed the behavior under test.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wexceptions"
#endif
struct B
{
static int count;

View File

@ -19,6 +19,13 @@
#include <stdlib.h>
#include <assert.h>
// Clang emits warnings about exceptions of type 'Child' being caught by
// an earlier handler of type 'Base'. Congrats clang, you've just
// diagnosed the behavior under test.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wexceptions"
#endif
struct B
{
static int count;

View File

@ -11,6 +11,13 @@
#include <cassert>
// Clang emits warnings about exceptions of type 'Child' being caught by
// an earlier handler of type 'Base'. Congrats clang, you've just
// diagnosed the behavior under test.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wexceptions"
#endif
#if __has_feature(cxx_nullptr)
struct A {};

View File

@ -19,6 +19,13 @@
#include <stdlib.h>
#include <assert.h>
// Clang emits warnings about exceptions of type 'Child' being caught by
// an earlier handler of type 'Base'. Congrats clang, you've just
// diagnosed the behavior under test.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wexceptions"
#endif
struct B
{
static int count;

View File

@ -11,6 +11,13 @@
#include <cassert>
// Clang emits warnings about exceptions of type 'Child' being caught by
// an earlier handler of type 'Base'. Congrats clang, you've just
// diagnosed the behavior under test.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wexceptions"
#endif
#if __cplusplus < 201103L
#define DISABLE_NULLPTR_TESTS
#endif

View File

@ -10,6 +10,12 @@
#include <cassert>
#include "support/timer.hpp"
// This test explicitly tests dynamic cast with types that have inaccessible
// bases.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Winaccessible-base"
#endif
/*
A1 A2 A3

View File

@ -10,6 +10,12 @@
#include <cassert>
#include "support/timer.hpp"
// This test explicitly tests dynamic cast with types that have inaccessible
// bases.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Winaccessible-base"
#endif
namespace t1
{

View File

@ -27,6 +27,13 @@
// UNSUPPORTED: libcxxabi-no-exceptions
// Clang emits warnings about exceptions of type 'Child' being caught by
// an earlier handler of type 'Base'. Congrats clang, you've just
// diagnosed the behavior under test.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wexceptions"
#endif
#include <assert.h>
struct Base {