r261534 - Add a test for r261425.

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 22 09:22:01 PST 2016


Author: majnemer
Date: Mon Feb 22 11:22:01 2016
New Revision: 261534

URL: http://llvm.org/viewvc/llvm-project?rev=261534&view=rev
Log:
Add a test for r261425.

Added:
    cfe/trunk/test/CodeGenCXX/exceptions-cxx-ehsc.cpp

Added: cfe/trunk/test/CodeGenCXX/exceptions-cxx-ehsc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/exceptions-cxx-ehsc.cpp?rev=261534&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/exceptions-cxx-ehsc.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/exceptions-cxx-ehsc.cpp Mon Feb 22 11:22:01 2016
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -fexceptions -fcxx-exceptions -fexternc-nounwind | FileCheck %s
+
+namespace test1 {
+struct Cleanup { ~Cleanup(); };
+extern "C" void never_throws();
+void may_throw();
+
+void caller() {
+  Cleanup x;
+  never_throws();
+  may_throw();
+}
+}
+// CHECK-LABEL: define void @"\01?caller at test1@@YAXXZ"(
+// CHECK: call void @never_throws(
+// CHECK: invoke void @"\01?may_throw at test1@@YAXXZ"(




More information about the cfe-commits mailing list