blob: f52baaf7058ccb6035f3cf83de87118a21526405 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
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}