From cdc55bc680fb0d03e792d0f24622793cd4c2ba49 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. llvm-svn: 117079 --- llvm/test/FrontendObjC++/2010-10-21-NoExceptions.mm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/FrontendObjC++/2010-10-21-NoExceptions.mm diff --git a/llvm/test/FrontendObjC++/2010-10-21-NoExceptions.mm b/llvm/test/FrontendObjC++/2010-10-21-NoExceptions.mm new file mode 100644 index 000000000000..d0d8596011a9 --- /dev/null +++ b/llvm/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 +}