New testcase that crashes the C++ FE, encountered while working on PR445
[oota-llvm.git] / test / C++Frontend / 2004-09-27-CompilerCrash.cpp
1
2
3 struct Pass {} ;
4 template<typename PassName>
5 Pass *callDefaultCtor() { return new PassName(); }
6
7 void foo(Pass *(*C)());
8
9 #include <bits/c++config.h>
10 #include <bits/stringfwd.h>
11 #include <bits/char_traits.h>
12 #include <memory>       // For allocator.
13 #include <bits/basic_string.h>
14
15 bool foo(std::string &X) {
16   return X.empty();
17 }