blob: 1e5e6acea5a5159db4f3b0255853c11b04bc04dc [file] [log] [blame]
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner584902e2004-09-28 02:29:40 +00003struct Pass {} ;
4template<typename PassName>
5Pass *callDefaultCtor() { return new PassName(); }
6
7void foo(Pass *(*C)());
8
9#include <bits/c++config.h>
10#include <bits/stringfwd.h>
11#include <bits/char_traits.h>
12#include <memory> // For allocator.
13#include <bits/basic_string.h>
14
15bool foo(std::string &X) {
16 return X.empty();
17}