From b13214f9d178be237cb915df409ea14e4fd138cc Mon Sep 17 00:00:00 2001 From: Stuart Hastings Date: Thu, 21 Oct 2010 22:43:32 +0000 Subject: [PATCH] Test case for r117075. Radar 6635085. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117079 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendObjC++/2010-10-21-NoExceptions.mm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/FrontendObjC++/2010-10-21-NoExceptions.mm diff --git a/test/FrontendObjC++/2010-10-21-NoExceptions.mm b/test/FrontendObjC++/2010-10-21-NoExceptions.mm new file mode 100644 index 00000000000..d0d8596011a --- /dev/null +++ b/test/FrontendObjC++/2010-10-21-NoExceptions.mm @@ -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 +} -- 2.34.1