summaryrefslogtreecommitdiff
path: root/test/Import/if-stmt/Inputs/F.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/if-stmt/Inputs/F.cpp')
-rw-r--r--test/Import/if-stmt/Inputs/F.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Import/if-stmt/Inputs/F.cpp b/test/Import/if-stmt/Inputs/F.cpp
new file mode 100644
index 000000000000..a7062c94ea76
--- /dev/null
+++ b/test/Import/if-stmt/Inputs/F.cpp
@@ -0,0 +1,21 @@
+void f() {
+ if (true)
+ return;
+
+ if (int j = 3)
+ return;
+
+ if (int j; true)
+ return;
+
+ if (true)
+ return;
+ else
+ return;
+
+ if (true) {
+ return;
+ } else {
+ return;
+ }
+}