[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Raphael Isemann 2018-08-21 17:15:57 +00:00
parent d43e8cc026
commit d45c4ab78c
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();
}