new regression test
[oota-llvm.git] / test / C++Frontend / 2004-09-27-CompilerCrash.cpp
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3
4
5 struct Pass {} ;
6 template<typename PassName>
7 Pass *callDefaultCtor() { return new PassName(); }
8
9 void 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
17 bool foo(std::string &X) {
18   return X.empty();
19 }