[llvm] r240253 - Add the testcase from pr23900.
Rafael Espindola
rafael.espindola at gmail.com
Sun Jun 21 18:29:24 PDT 2015
Author: rafael
Date: Sun Jun 21 20:29:24 2015
New Revision: 240253
URL: http://llvm.org/viewvc/llvm-project?rev=240253&view=rev
Log:
Add the testcase from pr23900.
Added:
llvm/trunk/test/CodeGen/X86/pr23900.ll
Added: llvm/trunk/test/CodeGen/X86/pr23900.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr23900.ll?rev=240253&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr23900.ll (added)
+++ llvm/trunk/test/CodeGen/X86/pr23900.ll Sun Jun 21 20:29:24 2015
@@ -0,0 +1,29 @@
+; RUN: llc -filetype=obj %s -o %t.o
+; RUN: llvm-nm %t.o | FileCheck %s
+
+; Test that it doesn't crash (and produces an object file).
+; This use to pass a symbol with a null name to code that expected a valid
+; C string.
+
+; CHECK: U __CxxFrameHandler3
+; CHECK: T f
+; CHECK: t f.cleanup
+; CHECK: U g
+; CHECK: U h
+
+
+target triple = "x86_64-pc-windows-msvc18.0.0"
+define void @f(i32 %x) personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) {
+ invoke void @h()
+ to label %invoke.cont unwind label %lpad
+invoke.cont:
+ ret void
+lpad:
+ landingpad { i8*, i32 }
+ cleanup
+ call void @g(i32 %x)
+ ret void
+}
+declare void @h()
+declare i32 @__CxxFrameHandler3(...)
+declare void @g(i32 %x)
More information about the llvm-commits
mailing list