summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-expr-4.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-20 21:51:01 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-20 21:51:01 +0000
commite06274d5c5c6b2decc9f217a8913b28f846bfcfa (patch)
treeb9ea93c1d91cceafb52d540d5475c3715f791394 /test/SemaTemplate/instantiate-expr-4.cpp
parentd94546a0a1deef7286c13e49b9584621ae81cc9a (diff)
downloadclang-e06274d5c5c6b2decc9f217a8913b28f846bfcfa.tar.gz
Template instantiation for CXXExprWithTemporaries, which occurs when
temporaries are generated for some object-constructing expressions in templates that are not type-dependent. Also, be sure to introduce the variable from a CXXConditionDeclExpr into the set of instantiated local variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-expr-4.cpp')
-rw-r--r--test/SemaTemplate/instantiate-expr-4.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-expr-4.cpp b/test/SemaTemplate/instantiate-expr-4.cpp
index a5b55b35d7..8a3f7d858e 100644
--- a/test/SemaTemplate/instantiate-expr-4.cpp
+++ b/test/SemaTemplate/instantiate-expr-4.cpp
@@ -33,3 +33,12 @@ struct BuildTemporary0 {
};
template struct BuildTemporary0<5, 7>;
+
+template<int N, int M>
+struct Temporaries0 {
+ void f() {
+ (void)X(N, M);
+ }
+};
+
+template struct Temporaries0<5, 7>;