Fix failing buildbots
authorGabor Marton <martongabesz@gmail.com>
Thu, 24 Jan 2019 15:42:20 +0000 (15:42 +0000)
committerGabor Marton <martongabesz@gmail.com>
Thu, 24 Jan 2019 15:42:20 +0000 (15:42 +0000)
Related commit which caused the buildbots to fail:
rL352050

llvm-svn: 352055

clang/unittests/AST/StructuralEquivalenceTest.cpp

index c895f7a021a8b2c330fd344cb67c270b1d3585aa..b0748b07389804789f2765ac4688d9b9220fd4d8 100644 (file)
@@ -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(