summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/expr-with-cleanups/test.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-08-15 22:51:37 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-08-15 22:51:37 +0000
commit380e372b13a5f13119594fea6e862fd4f55ef1ea (patch)
tree0adbc0f025de9969cbf53a4cebf11803a3a6b870 /clang/test/Import/expr-with-cleanups/test.cpp
parent9ff2d7d56ace40c1b2fc15a9ae41e4fda04cbbcb (diff)
downloadbcm5719-llvm-380e372b13a5f13119594fea6e862fd4f55ef1ea.tar.gz
bcm5719-llvm-380e372b13a5f13119594fea6e862fd4f55ef1ea.zip
[ASTImporter] Add test for ExprWithCleanups
Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: a_sidorin, martong, cfe-commits Differential Revision: https://reviews.llvm.org/D50731 llvm-svn: 339830
Diffstat (limited to 'clang/test/Import/expr-with-cleanups/test.cpp')
-rw-r--r--clang/test/Import/expr-with-cleanups/test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Import/expr-with-cleanups/test.cpp b/clang/test/Import/expr-with-cleanups/test.cpp
new file mode 100644
index 00000000000..79b76f414ec
--- /dev/null
+++ b/clang/test/Import/expr-with-cleanups/test.cpp
@@ -0,0 +1,8 @@
+// RUN: clang-import-test -dump-ast -import %S/Inputs/S.cpp -expression %s | FileCheck %s
+// CHECK: ExprWithCleanups
+// CHECK-SAME: 'RAII'
+// CHECK-NEXT: CXXBindTemporaryExpr
+
+void expr() {
+ f();
+}
OpenPOWER on IntegriCloud