Replace test_throw.h header with a single test macro

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@283030 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-10-01 10:34:13 +00:00
parent 56919fcf4e
commit cdac787ae8
8 changed files with 17 additions and 39 deletions

View File

@@ -20,7 +20,6 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "test_throw.h"
struct Counted {
static int count;
@@ -43,7 +42,7 @@ struct ThrowsCounted {
explicit ThrowsCounted() {
++constructed;
if (throw_after > 0 && --throw_after == 0) {
test_throw<int>();
TEST_THROW(1);
}
++count;
}

View File

@@ -20,7 +20,6 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "test_throw.h"
struct Counted {
static int count;
@@ -42,7 +41,7 @@ struct ThrowsCounted {
explicit ThrowsCounted() {
++constructed;
if (throw_after > 0 && --throw_after == 0) {
test_throw<int>();
TEST_THROW(1);
}
++count;
}