summaryrefslogtreecommitdiff
path: root/test/Driver/exceptions.m
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-05 08:56:55 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-12-05 08:56:55 +0000
commit64a12add36a2bd44cb5b571a5c7255797b703568 (patch)
tree45f5412080139e27d8e6d66919d2b7bb3640b649 /test/Driver/exceptions.m
parentee0543ee7ab80941cc4bef6da5cebd8bb56f2843 (diff)
downloadclang-64a12add36a2bd44cb5b571a5c7255797b703568.tar.gz
Driver: Objective-C should respect -fno-exceptions
Clang attempted to replicate a GCC bug: -fobjc-exceptions forces -fexceptions to be enabled. However, this has unintended effects and other awkard side effects that Clang doesn't "correctly" ape (e.g. it's impossible to turn off C++ exceptions in ObjC++ mode). Instead, -f[no]objc-exceptions and -f[no]cxx-exceptions now have an identical relationship with -f[no]exceptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/exceptions.m')
-rw-r--r--test/Driver/exceptions.m19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/Driver/exceptions.m b/test/Driver/exceptions.m
deleted file mode 100644
index 9b747bb84d..0000000000
--- a/test/Driver/exceptions.m
+++ /dev/null
@@ -1,19 +0,0 @@
-// RUN: %clang -target x86_64-apple-darwin9 \
-// RUN: -fsyntax-only -fno-exceptions %s
-
-void f1() {
- @throw @"A";
-}
-
-void f0() {
- @try {
- f1();
- } @catch (id x) {
- ;
- }
-}
-
-int main() {
- f0();
- return 0;
-}