llvm/clang/test/Driver/objc++-cpp-output.mm
Filipe Cabecinhas 1f72a0006c Add -fexceptions for targets where it isn't the default.
It still tests that objc++-cpp-output turns on -fcxx-exceptions and
-fobjc-exceptions by being a c++ and objc(++) file.

llvm-svn: 230992
2015-03-02 19:11:53 +00:00

18 lines
455 B
Plaintext

// RUN: %clang -fexceptions -emit-llvm -x objc++-cpp-output -S %s -o /dev/null
// RUN: %clang -fexceptions -emit-llvm -x objc++-cpp-output -S %s -o /dev/null -### 2>&1 | FileCheck %s
// PR13820
// REQUIRES: LP64
// Should compile without errors
@protocol P
- (void)m;
@end
void f() {}
class C {};
// Make sure the driver is passing all the necessary exception flags.
// CHECK: "-fobjc-exceptions"
// CHECK: "-fcxx-exceptions"
// CHECK: "-fexceptions"