summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/indirect-goto/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Import/indirect-goto/test.cpp')
-rw-r--r--clang/test/Import/indirect-goto/test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Import/indirect-goto/test.cpp b/clang/test/Import/indirect-goto/test.cpp
new file mode 100644
index 00000000000..62be49eea6b
--- /dev/null
+++ b/clang/test/Import/indirect-goto/test.cpp
@@ -0,0 +1,10 @@
+// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
+
+// CHECK: IndirectGotoStmt
+// CHECK-NEXT: ImplicitCastExpr
+// CHECK-NEXT: DeclRefExpr
+// CHECK-SAME: 'l1_ptr'
+
+void expr() {
+ f();
+}
OpenPOWER on IntegriCloud