diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2016-11-23 15:24:23 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-11-23 15:24:23 +0000 |
commit | 0866c2f5d4989e62e7d5883944199452b97c5b5f (patch) | |
tree | 2a7448e2798340b3ace09f99efb65468d16e016b /clang/unittests/AST/ASTImporterTest.cpp | |
parent | 4e9b9cbee98e4df128cdcd5bb1a41d77dacbb480 (diff) | |
download | bcm5719-llvm-0866c2f5d4989e62e7d5883944199452b97c5b5f.tar.gz bcm5719-llvm-0866c2f5d4989e62e7d5883944199452b97c5b5f.zip |
[ASTImporter] Added ability to import AtomicType nodes
Patch by: Kareem Khazem
Differential Revision: https://reviews.llvm.org/D26328
llvm-svn: 287763
Diffstat (limited to 'clang/unittests/AST/ASTImporterTest.cpp')
-rw-r--r-- | clang/unittests/AST/ASTImporterTest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp index 2255d7652c2..57b41f12b0b 100644 --- a/clang/unittests/AST/ASTImporterTest.cpp +++ b/clang/unittests/AST/ASTImporterTest.cpp @@ -474,5 +474,20 @@ TEST(ImportExpr, ImportVAArgExpr) { } +TEST(ImportType, ImportAtomicType) { + MatchVerifier<Decl> Verifier; + EXPECT_TRUE(testImport("void declToImport() { typedef _Atomic(int) a_int; }", + Lang_CXX11, "", Lang_CXX11, Verifier, + functionDecl( + hasBody( + compoundStmt( + has( + declStmt( + has( + typedefDecl( + has(atomicType())))))))))); +} + + } // end namespace ast_matchers } // end namespace clang |