summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/dependent-expr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-30 02:05:44 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-30 02:05:44 +0000
commit4cec5f806bcf10a9247c16cddbbb8966ccd3de33 (patch)
treebf0fd31046b1e8d8ef2e320c31321f006c78d35d /clang/test/SemaTemplate/dependent-expr.cpp
parent6c7f64e0bcae3f8f5bfb9348337d579614e0739a (diff)
downloadbcm5719-llvm-4cec5f806bcf10a9247c16cddbbb8966ccd3de33.tar.gz
bcm5719-llvm-4cec5f806bcf10a9247c16cddbbb8966ccd3de33.zip
Fix another case of giving the wrong value kind to a dependent cast to
a non-dependent type. llvm-svn: 120384
Diffstat (limited to 'clang/test/SemaTemplate/dependent-expr.cpp')
-rw-r--r--clang/test/SemaTemplate/dependent-expr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/dependent-expr.cpp b/clang/test/SemaTemplate/dependent-expr.cpp
index f3970d1d710..f26c85b1ecc 100644
--- a/clang/test/SemaTemplate/dependent-expr.cpp
+++ b/clang/test/SemaTemplate/dependent-expr.cpp
@@ -52,3 +52,12 @@ namespace test4 {
&const_cast<char&>(reinterpret_cast<const volatile char &>(v)));
}
}
+
+namespace test5 {
+ template <typename T> class chained_map {
+ int k;
+ void lookup() const {
+ int &v = (int &)k;
+ }
+ };
+}
OpenPOWER on IntegriCloud