[PATCH] D14286: ASTImporter: expressions, pt.1

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 14 00:14:52 PDT 2016


sepavloff added a subscriber: sepavloff.
sepavloff added a comment.

On Windows (VS2015 update1) two unit tests fail:

  [ RUN      ] ImportExpr.ImportGNUNullExpr
  input.cc:1:23: warning: expression result unused [-Wunused-value]
  void declToImport() { __null; }
                        ^~~~~~
  G:\arbeit\llvm2\llvm\tools\clang\unittests\AST\ASTImporterTest.cpp(149):
  error: Value of: testImport("void declToImport() { __null; }", Lang_CXX,
  "", Lang_CXX,
  Verifier, functionDecl( hasBody( compoundStmt( has( gnuNullExpr( hasType(
  asString("long"))))))))
    Actual: false (Could not find match)
  Expected: true
  [  FAILED  ] ImportExpr.ImportGNUNullExpr (61 ms)



  [ RUN      ] ImportExpr.ImportParenListExpr
  G:\arbeit\llvm2\llvm\tools\clang\unittests\AST\ASTImporterTest.cpp(284):
  error: Value of: testImport( "  template<typename T> class declToImport {"
  "    void f(
  ) { declToImport X(*this); } }; ", Lang_CXX, "", Lang_CXX, Verifier,
  classTemplateDecl( has( cxxRecordDecl( hasMethod( allOf( hasName("f"),
  hasBody( compoundStm
  t( has( declStmt( hasSingleDecl( varDecl( hasInitializer( parenListExpr(
  has( unaryOperator( hasOperatorName("*"), hasUnaryOperand(cxxThisExpr())
  ))))))))))))))
  ))
    Actual: false (Could not find match)
  Expected: true
  [  FAILED  ] ImportExpr.ImportParenListExpr (59 ms)



  [  FAILED  ] 2 tests, listed below:
  [  FAILED  ] ImportExpr.ImportGNUNullExpr
  [  FAILED  ] ImportExpr.ImportParenListExpr
  
   2 FAILED TESTS

Thanks,
--Serge


http://reviews.llvm.org/D14286





More information about the cfe-commits mailing list