blob: f507c2391508b65a3afeb096b1cc9ab64709119c [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3struct Pass {} ;
4template<typename PassName>
5Pass *callDefaultCtor() { return new PassName(); }
6
7void foo(Pass *(*C)());
8
9#include <string>
10
11bool foo(std::string &X) {
12 return X.empty();
13}