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;
|
int A::count = 0;
|
||||||
|
|
||||||
|
void fn ( const std::shared_ptr<int> &) {}
|
||||||
|
void fn ( const std::shared_ptr<B> &) { assert (false); }
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -91,4 +94,10 @@ int main()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert(A::count == 0);
|
assert(A::count == 0);
|
||||||
|
|
||||||
|
// LWG 2399
|
||||||
|
{
|
||||||
|
throw_next = false;
|
||||||
|
fn(std::unique_ptr<int>(new int));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue