make this test more portable.
authorChris Lattner <sabre@nondot.org>
Mon, 16 Apr 2007 06:14:28 +0000 (06:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Apr 2007 06:14:28 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36118 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2004-09-27-CompilerCrash.cpp

index b997616c0dcc3b1f32d9e080754d7005374fedea..f507c2391508b65a3afeb096b1cc9ab64709119c 100644 (file)
@@ -1,5 +1,4 @@
 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
-// XFAIL: *
 
 struct Pass {} ;
 template<typename PassName>
@@ -7,11 +6,7 @@ Pass *callDefaultCtor() { return new PassName(); }
 
 void foo(Pass *(*C)());
 
-#include <bits/c++config.h>
-#include <bits/stringfwd.h>
-#include <bits/char_traits.h>
-#include <memory>       // For allocator.
-#include <bits/basic_string.h>
+#include <string>
 
 bool foo(std::string &X) {
   return X.empty();