[cfe-commits] r94957 - /cfe/trunk/test/SemaCXX/static-cast.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Jan 31 03:51:51 PST 2010
Author: chandlerc
Date: Sun Jan 31 05:51:51 2010
New Revision: 94957
URL: http://llvm.org/viewvc/llvm-project?rev=94957&view=rev
Log:
Add a test case for a fixed PR just to ensure we don't regress.
Modified:
cfe/trunk/test/SemaCXX/static-cast.cpp
Modified: cfe/trunk/test/SemaCXX/static-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/static-cast.cpp?rev=94957&r1=94956&r2=94957&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/static-cast.cpp (original)
+++ cfe/trunk/test/SemaCXX/static-cast.cpp Sun Jan 31 05:51:51 2010
@@ -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); }
More information about the cfe-commits
mailing list