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 +}