File tree Expand file tree Collapse file tree 5 files changed +20
-60
lines changed Expand file tree Collapse file tree 5 files changed +20
-60
lines changed Original file line number Diff line number Diff line change 14
14
15
15
// UNSUPPORTED: no-exceptions
16
16
17
- // FIXME: GCC doesn't allow turning off the warning for exceptions being caught
18
- // by earlier handlers, which this test is exercising. We have to disable
19
- // warnings altogether to remove the error.
20
- // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
21
- // ADDITIONAL_COMPILE_FLAGS: -Wno-error
17
+ // Compilers emit warnings about exceptions of type 'Child' being caught by
18
+ // an earlier handler of type 'Base'. Congrats, you've just diagnosed the
19
+ // behavior under test.
20
+ // ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
22
21
23
22
#include < exception>
24
23
#include < stdlib.h>
25
24
#include < assert.h>
26
25
27
- // Clang emits warnings about exceptions of type 'Child' being caught by
28
- // an earlier handler of type 'Base'. Congrats clang, you've just
29
- // diagnosed the behavior under test.
30
- #if defined(__clang__)
31
- #pragma clang diagnostic ignored "-Wexceptions"
32
- #endif
33
-
34
26
struct B
35
27
{
36
28
static int count;
Original file line number Diff line number Diff line change 14
14
15
15
// UNSUPPORTED: no-exceptions
16
16
17
- // FIXME: GCC doesn't allow turning off the warning for exceptions being caught
18
- // by earlier handlers, which this test is exercising. We have to disable
19
- // warnings altogether to remove the error.
20
- // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
21
- // ADDITIONAL_COMPILE_FLAGS: -Wno-error
17
+ // Compilers emit warnings about exceptions of type 'Child' being caught by
18
+ // an earlier handler of type 'Base'. Congrats, you've just diagnosed the
19
+ // behavior under test.
20
+ // ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
22
21
23
22
#include < exception>
24
23
#include < stdlib.h>
25
24
#include < assert.h>
26
25
27
- // Clang emits warnings about exceptions of type 'Child' being caught by
28
- // an earlier handler of type 'Base'. Congrats clang, you've just
29
- // diagnosed the behavior under test.
30
- #if defined(__clang__)
31
- #pragma clang diagnostic ignored "-Wexceptions"
32
- #endif
33
-
34
26
struct B
35
27
{
36
28
static int count;
Original file line number Diff line number Diff line change 14
14
15
15
// UNSUPPORTED: no-exceptions
16
16
17
- // FIXME: GCC doesn't allow turning off the warning for exceptions being caught
18
- // by earlier handlers, which this test is exercising. We have to disable
19
- // warnings altogether to remove the error.
20
- // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
21
- // ADDITIONAL_COMPILE_FLAGS: -Wno-error
17
+ // Compilers emit warnings about exceptions of type 'Child' being caught by
18
+ // an earlier handler of type 'Base'. Congrats, you've just diagnosed the
19
+ // behavior under test.
20
+ // ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
22
21
23
22
#include < exception>
24
23
#include < stdlib.h>
25
24
#include < assert.h>
26
25
27
- // Clang emits warnings about exceptions of type 'Child' being caught by
28
- // an earlier handler of type 'Base'. Congrats clang, you've just
29
- // diagnosed the behavior under test.
30
- #if defined(__clang__)
31
- #pragma clang diagnostic ignored "-Wexceptions"
32
- #endif
33
-
34
26
struct B
35
27
{
36
28
static int count;
Original file line number Diff line number Diff line change 8
8
9
9
// UNSUPPORTED: no-exceptions
10
10
11
- // FIXME: GCC doesn't allow turning off the warning for exceptions being caught
12
- // by earlier handlers, which this test is exercising. We have to disable
13
- // warnings altogether to remove the error.
14
- // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
15
- // ADDITIONAL_COMPILE_FLAGS: -Wno-error
11
+ // Compilers emit warnings about exceptions of type 'Child' being caught by
12
+ // an earlier handler of type 'Base'. Congrats, you've just diagnosed the
13
+ // behavior under test.
14
+ // ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
16
15
17
16
// The fix for PR17222 made it in the dylib for macOS 10.10
18
17
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.9
19
18
20
19
#include < cassert>
21
20
22
- // Clang emits warnings about exceptions of type 'Child' being caught by
23
- // an earlier handler of type 'Base'. Congrats clang, you've just
24
- // diagnosed the behavior under test.
25
- #if defined(__clang__)
26
- #pragma clang diagnostic ignored "-Wexceptions"
27
- #endif
28
-
29
21
#if __cplusplus < 201103L
30
22
#define DISABLE_NULLPTR_TESTS
31
23
#endif
Original file line number Diff line number Diff line change 26
26
27
27
// UNSUPPORTED: no-exceptions
28
28
29
- // FIXME: GCC doesn't allow turning off the warning for exceptions being caught
30
- // by earlier handlers, which this test is exercising. We have to disable
31
- // warnings altogether to remove the error.
32
- // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97675.
33
- // ADDITIONAL_COMPILE_FLAGS: -Wno-error
34
-
35
- // Clang emits warnings about exceptions of type 'Child' being caught by
36
- // an earlier handler of type 'Base'. Congrats clang, you've just
37
- // diagnosed the behavior under test.
38
- #if defined(__clang__)
39
- #pragma clang diagnostic ignored "-Wexceptions"
40
- #endif
29
+ // Compilers emit warnings about exceptions of type 'Child' being caught by
30
+ // an earlier handler of type 'Base'. Congrats, you've just diagnosed the
31
+ // behavior under test.
32
+ // ADDITIONAL_COMPILE_FLAGS: -Wno-exceptions
41
33
42
34
#include < assert.h>
43
35
You can’t perform that action at this time.
0 commit comments