summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/exprs-cpp/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ASTMerge/exprs-cpp/test.cpp')
-rw-r--r--clang/test/ASTMerge/exprs-cpp/test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/exprs-cpp/test.cpp b/clang/test/ASTMerge/exprs-cpp/test.cpp
index 0535aa85330..c0b282ec028 100644
--- a/clang/test/ASTMerge/exprs-cpp/test.cpp
+++ b/clang/test/ASTMerge/exprs-cpp/test.cpp
@@ -30,6 +30,8 @@ static_assert(ExpressionTrait == false);
static_assert(ArrayRank == 2);
static_assert(ArrayExtent == 20);
+static_assert(testLambdaAdd(3) == 6);
+
void testImport(int *x, const S1 &cs1, S1 &s1) {
testNewThrowDelete();
testArrayElement(nullptr, 12);
@@ -44,4 +46,5 @@ void testImport(int *x, const S1 &cs1, S1 &s1) {
testDefaultArg();
testDefaultArgExpr();
useTemplateType();
+ TestLambdaTemplate<int>(1, 2).testLambda(3);
}
OpenPOWER on IntegriCloud