aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2004-09-27-CompilerCrash.cpp
blob: 726bd86a40d37a3cbee3c4d52490adde6c72bb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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();
}