[llvm-commits] [llvm] r117079 - /llvm/trunk/test/FrontendObjC++/2010-10-21-NoExceptions.mm
Stuart Hastings
stuart at apple.com
Thu Oct 21 15:43:32 PDT 2010
Author: stuart
Date: Thu Oct 21 17:43:32 2010
New Revision: 117079
URL: http://llvm.org/viewvc/llvm-project?rev=117079&view=rev
Log:
Test case for r117075. Radar 6635085.
Added:
llvm/trunk/test/FrontendObjC++/2010-10-21-NoExceptions.mm
Added: llvm/trunk/test/FrontendObjC++/2010-10-21-NoExceptions.mm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC%2B%2B/2010-10-21-NoExceptions.mm?rev=117079&view=auto
==============================================================================
--- llvm/trunk/test/FrontendObjC++/2010-10-21-NoExceptions.mm (added)
+++ llvm/trunk/test/FrontendObjC++/2010-10-21-NoExceptions.mm Thu Oct 21 17:43:32 2010
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc -fno-exceptions %s -S -emit-llvm -o - | FileCheck %s
+struct Foo
+{
+ int x;
+ Foo ();
+};
+Foo *test(void)
+{
+ return new Foo();
+ // There should be no references to any Unwinding routines under -fno-exceptions.
+ // CHECK-NOT: Unwind
+}
More information about the llvm-commits
mailing list