[libcxx] [test] Don't ask whether Incomplete& can be assigned to.

This is the subject of an active NB comment. Regardless of what the Working
Paper currently says, asking this question is morally wrong, because the
answer can change when the type is completed. C1XX now detects such
precondition violations and complains about them; perhaps Clang should too.

Fixes D28591.

llvm-svn: 292281
This commit is contained in:
Stephan T. Lavavej 2017-01-17 22:24:45 +00:00
parent e2c9ad9483
commit 6d184d1fb1
1 changed files with 0 additions and 1 deletions

View File

@ -82,5 +82,4 @@ int main()
// pointer to incomplete template type // pointer to incomplete template type
test_is_assignable<X<D>*&, X<D>*> (); test_is_assignable<X<D>*&, X<D>*> ();
test_is_not_assignable<Incomplete&, Incomplete const&>();
} }