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

Rafael Espindola rafael.espindola at gmail.com
Sat Oct 27 19:25:27 PDT 2012


Author: rafael
Date: Sat Oct 27 21:25:27 2012
New Revision: 166894

URL: http://llvm.org/viewvc/llvm-project?rev=166894&view=rev
Log:
Add a testcase from the previous bootstrap problem.

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=166894&r1=166893&r2=166894&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/crashes.cpp (original)
+++ cfe/trunk/test/SemaCXX/crashes.cpp Sat Oct 27 21:25:27 2012
@@ -148,3 +148,14 @@
     }
   };
 }
+
+namespace test2 {
+  struct fltSemantics ;
+  const fltSemantics &foobar();
+  void VisitCastExpr(int x) {
+    switch (x) {
+    case 42:
+      const fltSemantics &Sem = foobar();
+    }
+  }
+}





More information about the cfe-commits mailing list