blob: 726bd86a40d37a3cbee3c4d52490adde6c72bb2b [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 +00003
4
5struct Pass {} ;
6template<typename PassName>
7Pass *callDefaultCtor() { return new PassName(); }
8
9void foo(Pass *(*C)());
10
11#include <bits/c++config.h>
12#include <bits/stringfwd.h>
13#include <bits/char_traits.h>
14#include <memory> // For allocator.
15#include <bits/basic_string.h>
16
17bool foo(std::string &X) {
18 return X.empty();
19}