aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2004-09-27-CompilerCrash.cpp
blob: 1e5e6acea5a5159db4f3b0255853c11b04bc04dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null

struct Pass {} ;
template<typename PassName>
Pass *callDefaultCtor() { return new PassName(); }

void foo(Pass *(*C)());

#include <bits/c++config.h>
#include <bits/stringfwd.h>
#include <bits/char_traits.h>
#include <memory>       // For allocator.
#include <bits/basic_string.h>

bool foo(std::string &X) {
  return X.empty();
}