aboutsummaryrefslogtreecommitdiff
path: root/test/Import/expr-with-cleanups/Inputs/S.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/expr-with-cleanups/Inputs/S.cpp')
-rw-r--r--test/Import/expr-with-cleanups/Inputs/S.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Import/expr-with-cleanups/Inputs/S.cpp b/test/Import/expr-with-cleanups/Inputs/S.cpp
new file mode 100644
index 000000000000..7b69f48f681e
--- /dev/null
+++ b/test/Import/expr-with-cleanups/Inputs/S.cpp
@@ -0,0 +1,8 @@
+struct RAII {
+ int i = 0;
+ RAII() { i++; }
+ ~RAII() { i--; }
+};
+void f() {
+ RAII();
+}