make this test more portable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-16 06:14:28 +00:00
parent ae88e984bb
commit 2911090cdf

View 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();