Sigh. Once again forgot about the 'no exceptions' bots.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
#include "asan_testing.h"
|
#include "asan_testing.h"
|
||||||
|
|
||||||
|
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||||
struct Throws {
|
struct Throws {
|
||||||
Throws() : v_(0) {}
|
Throws() : v_(0) {}
|
||||||
Throws(int v) : v_(v) {}
|
Throws(int v) : v_(v) {}
|
||||||
@@ -30,6 +31,7 @@ struct Throws {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool Throws::sThrows = false;
|
bool Throws::sThrows = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -85,6 +87,7 @@ int main()
|
|||||||
assert(is_contiguous_container_asan_correct(l1));
|
assert(is_contiguous_container_asan_correct(l1));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||||
// Test for LWG2853:
|
// Test for LWG2853:
|
||||||
// Throws: Nothing unless an exception is thrown by the assignment operator or move assignment operator of T.
|
// Throws: Nothing unless an exception is thrown by the assignment operator or move assignment operator of T.
|
||||||
{
|
{
|
||||||
@@ -96,4 +99,5 @@ int main()
|
|||||||
v.erase(v.begin());
|
v.erase(v.begin());
|
||||||
assert(v.size() == 0);
|
assert(v.size() == 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
#include "asan_testing.h"
|
#include "asan_testing.h"
|
||||||
|
|
||||||
|
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||||
struct Throws {
|
struct Throws {
|
||||||
Throws() : v_(0) {}
|
Throws() : v_(0) {}
|
||||||
Throws(int v) : v_(v) {}
|
Throws(int v) : v_(v) {}
|
||||||
@@ -30,6 +31,7 @@ struct Throws {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool Throws::sThrows = false;
|
bool Throws::sThrows = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -138,6 +140,7 @@ int main()
|
|||||||
assert(is_contiguous_container_asan_correct(outer[1]));
|
assert(is_contiguous_container_asan_correct(outer[1]));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||||
// Test for LWG2853:
|
// Test for LWG2853:
|
||||||
// Throws: Nothing unless an exception is thrown by the assignment operator or move assignment operator of T.
|
// Throws: Nothing unless an exception is thrown by the assignment operator or move assignment operator of T.
|
||||||
{
|
{
|
||||||
@@ -149,4 +152,5 @@ int main()
|
|||||||
v.erase(v.begin(), v.end());
|
v.erase(v.begin(), v.end());
|
||||||
assert(v.size() == 0);
|
assert(v.size() == 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user