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()));
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, );
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, );