From: Gabor Marton Date: Thu, 24 Jan 2019 15:42:20 +0000 (+0000) Subject: Fix failing buildbots X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1950719e2b21e198406515465539e505d1518753;p=clang Fix failing buildbots Related commit which caused the buildbots to fail: rL352050 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352055 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/AST/StructuralEquivalenceTest.cpp b/unittests/AST/StructuralEquivalenceTest.cpp index c895f7a021..b0748b0738 100644 --- a/unittests/AST/StructuralEquivalenceTest.cpp +++ b/unittests/AST/StructuralEquivalenceTest.cpp @@ -378,14 +378,17 @@ TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentNoreturnAttr) { EXPECT_TRUE(testStructuralMatch(t)); } +// These calling conventions may not be available on certain platforms. +#if defined(__x86_64__) && defined(__linux__) TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentCallingConventions) { auto t = makeNamedDecls( - "__attribute__((fastcall)) void foo();", + "__attribute__((preserve_all)) void foo();", "__attribute__((ms_abi)) void foo();", Lang_C); EXPECT_FALSE(testStructuralMatch(t)); } +#endif TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentSavedRegsAttr) { auto t = makeNamedDecls(