[ASTImporter] Add test for CXXNoexceptExpr

Reviewers: a.sidorin, a_sidorin

Reviewed By: a_sidorin

Subscribers: a_sidorin, hiraditya, martong, cfe-commits

Differential Revision: https://reviews.llvm.org/D50737

llvm-svn: 340304
This commit is contained in:
Raphael Isemann 2018-08-21 17:15:57 +00:00
parent b172b8884a
commit 6603f0bff9
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
bool f() { return noexcept(1); }

View File

@ -0,0 +1,8 @@
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
// CHECK: CXXNoexceptExpr
// CHECK-NEXT: IntegerLiteral
void expr() {
f();
}