From: Chandler Carruth Date: Sun, 31 Jan 2010 11:51:51 +0000 (+0000) Subject: Add a test case for a fixed PR just to ensure we don't regress. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c099d9bc4842afc0e724eddab661cbb386c82117;p=clang 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 cdaa843b81..812f280735 100644 --- a/test/SemaCXX/static-cast.cpp +++ b/test/SemaCXX/static-cast.cpp @@ -178,3 +178,6 @@ struct X4 { const X2 *x2; }; + +// PR5897 - accept static_cast from const void* to const int (*)[1]. +void PR5879() { (void)static_cast((const void*)0); }