llvm/clang/test/Driver/exceptions.m
David Majnemer ae394819c8 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.

llvm-svn: 223723
2014-12-09 00:12:30 +00:00

20 lines
219 B
Mathematica

// 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;
}