commit | c099d9bc4842afc0e724eddab661cbb386c82117 | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Sun Jan 31 11:51:51 2010 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Sun Jan 31 11:51:51 2010 +0000 |
tree | 751e99fc89df94755822a802fb47309e8166d81a | |
parent | aaa1a895725f3977c005304be9ca36747d9e3c97 [diff] |
Add a test case for a fixed PR just to ensure we don't regress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94957 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/static-cast.cpp b/test/SemaCXX/static-cast.cpp index cdaa843..812f280 100644 --- a/test/SemaCXX/static-cast.cpp +++ b/test/SemaCXX/static-cast.cpp
@@ -178,3 +178,6 @@ const X2 *x2; }; + +// PR5897 - accept static_cast from const void* to const int (*)[1]. +void PR5879() { (void)static_cast<const int(*)[1]>((const void*)0); }