[cfe-commits] r166866 - /cfe/trunk/test/SemaCXX/crashes.cpp

Rafael Espindola rafael.espindola at gmail.com
Fri Oct 26 21:54:49 PDT 2012


Author: rafael
Date: Fri Oct 26 23:54:49 2012
New Revision: 166866

URL: http://llvm.org/viewvc/llvm-project?rev=166866&view=rev
Log:
Add a reduced testcase of the last bootstrap failure.

Modified:
    cfe/trunk/test/SemaCXX/crashes.cpp

Modified: cfe/trunk/test/SemaCXX/crashes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/crashes.cpp?rev=166866&r1=166865&r2=166866&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/crashes.cpp (original)
+++ cfe/trunk/test/SemaCXX/crashes.cpp Fri Oct 26 23:54:49 2012
@@ -136,3 +136,15 @@
 }
 
 }
+
+namespace test1 {
+  int getString(const int*);
+  template<int a> class ELFObjectFile  {
+    const int* sh;
+    ELFObjectFile() {
+      switch (*sh) {
+      }
+      int SectionName(getString(sh));
+    }
+  };
+}





More information about the cfe-commits mailing list