forked from OSchip/llvm-project
Suppress warnings about the operations currently under test.
llvm-svn: 272819
This commit is contained in:
parent
9d305d707e
commit
f5ff11c432
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue