mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 10:07:41 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user