diff options
| author | Gabor Marton <martongabesz@gmail.com> | 2019-01-24 15:42:20 +0000 |
|---|---|---|
| committer | Gabor Marton <martongabesz@gmail.com> | 2019-01-24 15:42:20 +0000 |
| commit | 23a06fb2bdb536e63ce41a77c69ebe3e32a9ac6b (patch) | |
| tree | 26a24942eb7931bacd903946e20258d368558931 | |
| parent | 9f6045111a845401d7189ea2a98a156e2d45773b (diff) | |
| download | bcm5719-llvm-23a06fb2bdb536e63ce41a77c69ebe3e32a9ac6b.tar.gz bcm5719-llvm-23a06fb2bdb536e63ce41a77c69ebe3e32a9ac6b.zip | |
Fix failing buildbots
Related commit which caused the buildbots to fail:
rL352050
llvm-svn: 352055
| -rw-r--r-- | clang/unittests/AST/StructuralEquivalenceTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/unittests/AST/StructuralEquivalenceTest.cpp b/clang/unittests/AST/StructuralEquivalenceTest.cpp index c895f7a021a..b0748b07389 100644 --- a/clang/unittests/AST/StructuralEquivalenceTest.cpp +++ b/clang/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( |

