forked from OSchip/llvm-project
Add a test for LWG issue #2399. We already implement this, but now we have a test as well.
llvm-svn: 222242
This commit is contained in:
parent
018dbf18c4
commit
e1a075d5ce
|
@ -55,6 +55,9 @@ struct A
|
|||
|
||||
int A::count = 0;
|
||||
|
||||
void fn ( const std::shared_ptr<int> &) {}
|
||||
void fn ( const std::shared_ptr<B> &) { assert (false); }
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
@ -91,4 +94,10 @@ int main()
|
|||
}
|
||||
}
|
||||
assert(A::count == 0);
|
||||
|
||||
// LWG 2399
|
||||
{
|
||||
throw_next = false;
|
||||
fn(std::unique_ptr<int>(new int));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue