mirror of https://github.com/microsoft/clang.git
[ASTImporter] Add test for IndirectGotoStmt
Reviewers: a.sidorin, martong Reviewed By: martong Subscribers: rnkovacs, martong, cfe-commits Differential Revision: https://reviews.llvm.org/D50813 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19fc4718cc
commit
a4b62b2f87
|
@ -0,0 +1,6 @@
|
|||
void f() {
|
||||
void const *l1_ptr = &&l1;
|
||||
goto *l1_ptr;
|
||||
l1:
|
||||
return;
|
||||
}
|
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue