Skip to content

Commit

Permalink
unittests/ADT/ArrayRefTest.cpp: Suppress r243995 on g++-4.8 for now t…
Browse files Browse the repository at this point in the history
…o unbreak bots.

For example of mingw-w64-g++-4.8.1,

  llvm/unittests/ADT/ArrayRefTest.cpp: In member function 'virtual void {anonymous}::ArrayRefTest_AllocatorCopy_Test::TestBody()':
  llvm/unittests/ADT/ArrayRefTest.cpp:56:40: internal compiler error: in count_type_elements, at expr.c:5523
     } Array3Src[] = {{"hello"}, {"world"}};
                                          ^
  Please submit a full bug report,
  with preprocessed source if appropriate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244017 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Aug 5, 2015
1 parent 68765af commit bf1c315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unittests/ADT/ArrayRefTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ TEST(ArrayRefTest, AllocatorCopy) {
EXPECT_TRUE(Array2.equals(Array2c));
EXPECT_NE(Array2.data(), Array2c.data());

#if __GNUC__==4 && __GNUC_MINOR__==8
// g++-4.8 cannot compile the block below.
#else
// Check that copy can cope with uninitialized memory.
struct NonAssignable {
const char *Ptr;
Expand All @@ -57,6 +60,7 @@ TEST(ArrayRefTest, AllocatorCopy) {
ArrayRef<NonAssignable> Array3Copy = makeArrayRef(Array3Src).copy(Alloc);
EXPECT_EQ(makeArrayRef(Array3Src), Array3Copy);
EXPECT_NE(makeArrayRef(Array3Src).data(), Array3Copy.data());
#endif
}

TEST(ArrayRefTest, DropBack) {
Expand Down

0 comments on commit bf1c315

Please sign in to comment.