[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2004-09-27-CompilerCrash.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 27 19:29:54 PDT 2004
Changes in directory llvm/test/Regression/C++Frontend:
2004-09-27-CompilerCrash.cpp added (r1.1)
---
Log message:
New testcase that crashes the C++ FE, encountered while working on PR445: http://llvm.cs.uiuc.edu/PR445
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/C++Frontend/2004-09-27-CompilerCrash.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2004-09-27-CompilerCrash.cpp:1.1
*** /dev/null Mon Sep 27 21:29:50 2004
--- llvm/test/Regression/C++Frontend/2004-09-27-CompilerCrash.cpp Mon Sep 27 21:29:40 2004
***************
*** 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();
+ }
More information about the llvm-commits
mailing list