blob: f52baaf7058ccb6035f3cf83de87118a21526405 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00002
Chris Lattner584902e2004-09-28 02:29:40 +00003struct Pass {} ;
4template<typename PassName>
5Pass *callDefaultCtor() { return new PassName(); }
6
7void foo(Pass *(*C)());
8
Chris Lattner29110902007-04-16 06:14:28 +00009#include <string>
Chris Lattner584902e2004-09-28 02:29:40 +000010
11bool foo(std::string &X) {
12 return X.empty();
13}