aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-01-31 11:51:51 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-01-31 11:51:51 +0000
commitc099d9bc4842afc0e724eddab661cbb386c82117 (patch)
tree751e99fc89df94755822a802fb47309e8166d81a
parentaaa1a895725f3977c005304be9ca36747d9e3c97 (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
-rw-r--r--test/SemaCXX/static-cast.cpp3
1 files changed, 3 insertions, 0 deletions
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 int(*)[1]>((const void*)0); }