llvm-mirror/test/FrontendC++/2004-09-27-CompilerCrash.cpp
Dan Gohman bf08e82d8e Remove obsolete -f flags.
llvm-svn: 79992
2009-08-25 15:38:29 +00:00

14 lines
242 B
C++

// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
struct Pass {} ;
template<typename PassName>
Pass *callDefaultCtor() { return new PassName(); }
void foo(Pass *(*C)());
#include <string>
bool foo(std::string &X) {
return X.empty();
}