diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-12-09 00:12:30 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-12-09 00:12:30 +0000 |
commit | 0a2e4f2c129edc8a3f0590493fd88e5751de60c4 (patch) | |
tree | e1d0746b709f47ef7ef0438f5581d7a80402a492 /test/Driver/exceptions.m | |
parent | 40d9da6f4b90f2fb7dc469f8cb8efd21b57a207a (diff) | |
download | clang-0a2e4f2c129edc8a3f0590493fd88e5751de60c4.tar.gz |
Revert "Driver: Objective-C should respect -fno-exceptions"
This reverts commit r223455. It's been succesfully argued that
-fexceptions (at the driver level) is a misnomer and has little to do
with -fobjc-exceptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/exceptions.m')
-rw-r--r-- | test/Driver/exceptions.m | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Driver/exceptions.m b/test/Driver/exceptions.m new file mode 100644 index 0000000000..9b747bb84d --- /dev/null +++ b/test/Driver/exceptions.m @@ -0,0 +1,19 @@ +// 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; +} |