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