summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-1.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
commit06555f134a7471c93124c71c8f2cf0892cc942cf (patch)
tree2dab64cabaf2677b01b8b15a373257b4413e028a /clang/test/SemaTemplate/instantiate-function-1.cpp
parent9a3964a663695e9008b38f3a4fed25f21546c15e (diff)
downloadbcm5719-llvm-06555f134a7471c93124c71c8f2cf0892cc942cf.tar.gz
bcm5719-llvm-06555f134a7471c93124c71c8f2cf0892cc942cf.zip
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. llvm-svn: 72185
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-function-1.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp
index caae97e60bb..6182e1fe888 100644
--- a/clang/test/SemaTemplate/instantiate-function-1.cpp
+++ b/clang/test/SemaTemplate/instantiate-function-1.cpp
@@ -69,6 +69,9 @@ template<typename T, typename U, typename V> struct X6 {
return v; // expected-error{{incompatible type}}
}
+ if (T x = t) {
+ t = x;
+ }
return v;
}
};
OpenPOWER on IntegriCloud