From: Benjamin Kramer Date: Thu, 19 Nov 2009 16:04:41 +0000 (+0000) Subject: Reenable Split2 StringRef test with Apple gcc. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=49123250ae32a17f397b332871b715a66cc26d69;p=oota-llvm.git Reenable Split2 StringRef test with Apple gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89357 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp index 11545d539b2..dfa208abefd 100644 --- a/unittests/ADT/StringRefTest.cpp +++ b/unittests/ADT/StringRefTest.cpp @@ -111,11 +111,6 @@ TEST(StringRefTest, Split) { Str.rsplit('o')); } -// XFAIL for PR5482, StringRef is miscompiled by Apple gcc. -#if (!defined(__llvm__) && defined(__APPLE__) && defined(__OPTIMIZE__)) -#define SKIP_SPLIT2 -#endif -#ifndef SKIP_SPLIT2 TEST(StringRefTest, Split2) { SmallVector parts; SmallVector expected; @@ -195,7 +190,6 @@ TEST(StringRefTest, Split2) { StringRef("a,,b,c").split(parts, ",", 3, false); EXPECT_TRUE(parts == expected); } -#endif TEST(StringRefTest, StartsWith) { StringRef Str("hello");