diff options
-rw-r--r-- | test/C++Frontend/2004-09-27-CompilerCrash.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/C++Frontend/2004-09-27-CompilerCrash.cpp b/test/C++Frontend/2004-09-27-CompilerCrash.cpp new file mode 100644 index 0000000000..71b3cc876d --- /dev/null +++ b/test/C++Frontend/2004-09-27-CompilerCrash.cpp @@ -0,0 +1,17 @@ + + +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(); +} |