[ASTImporter] 3rd attempt to fix Windows buildbot test errors

llvm-svn: 372688
This commit is contained in:
Gabor Marton 2019-09-24 05:50:02 +00:00
parent b26e9e2a8f
commit 3135a01da8
1 changed files with 6 additions and 4 deletions

View File

@ -30,9 +30,9 @@ using internal::BindableMatcher;
struct Function {
using DeclTy = FunctionDecl;
static constexpr auto *Prototype = "void X(char*, char);";
static constexpr auto *Prototype = "void X(int);";
static constexpr auto *ConflictingPrototype = "void X(double);";
static constexpr auto *Definition = "void X(char *a, char b) {}";
static constexpr auto *Definition = "void X(int a) {}";
static constexpr auto *ConflictingDefinition = "void X(double a) {}";
BindableMatcher<Decl> getPattern() {
return functionDecl(hasName("X"), unless(isImplicit()));
@ -582,7 +582,8 @@ ASTIMPORTER_ODR_INSTANTIATE_TYPED_TEST_CASE(
INSTANTIATE_TEST_CASE_P(
ODRViolationTests, FunctionConservative,
DefaultTestValuesForRunOptions, );
// These tests fail on Windows.
::testing::Values(ArgVector{"-target", "x86_64-pc-linux-gnu"}), );
INSTANTIATE_TEST_CASE_P(
ODRViolationTests, TypedefConservative,
DefaultTestValuesForRunOptions, );
@ -624,7 +625,8 @@ INSTANTIATE_TEST_CASE_P(
INSTANTIATE_TEST_CASE_P(
ODRViolationTests, FunctionLiberal,
DefaultTestValuesForRunOptions, );
// These tests fail on Windows.
::testing::Values(ArgVector{"-target", "x86_64-pc-linux-gnu"}), );
INSTANTIATE_TEST_CASE_P(
ODRViolationTests, TypedefLiberal,
DefaultTestValuesForRunOptions, );