]> granicus.if.org Git - clang/commitdiff
Add a test case for a fixed PR just to ensure we don't regress.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 31 Jan 2010 11:51:51 +0000 (11:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 31 Jan 2010 11:51:51 +0000 (11:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94957 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/static-cast.cpp

index cdaa843b81708efbab85cc13939e8c7381734452..812f280735de61c9dec422a6742c86f01e726525 100644 (file)
@@ -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 int(*)[1]>((const void*)0); }