diff options
author | Stuart Hastings <stuart@apple.com> | 2010-10-21 22:43:32 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-10-21 22:43:32 +0000 |
commit | b13214f9d178be237cb915df409ea14e4fd138cc (patch) | |
tree | 7afc16f75d18352830fd56e528e8261b88e5b367 | |
parent | 4ceccc4e575b6f51bad18a6c16de1877c756598c (diff) |
Test case for r117075. Radar 6635085.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117079 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FrontendObjC++/2010-10-21-NoExceptions.mm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/FrontendObjC++/2010-10-21-NoExceptions.mm b/test/FrontendObjC++/2010-10-21-NoExceptions.mm new file mode 100644 index 0000000000..d0d8596011 --- /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 +} |