LegalizeTypes can sometimes have deleted nodes
[oota-llvm.git] / 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();