Add tests to make sure that is_constructible<cv-void> is false. We already checked 'unqualified void'. This was brought up by LWG#2738

llvm-svn: 283161
This commit is contained in:
Marshall Clow 2016-10-03 23:39:52 +00:00
parent be3be28b5d
commit 53abcbd8a9
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ int main()
#endif
test_is_not_constructible<A, void> ();
test_is_not_constructible<void> ();
test_is_not_constructible<const void> (); // LWG 2738
test_is_not_constructible<volatile void> ();
test_is_not_constructible<const volatile void> ();
test_is_not_constructible<int&> ();
test_is_not_constructible<Abstract> ();
test_is_not_constructible<AbstractDestructor> ();