summaryrefslogtreecommitdiff
path: root/test/Driver/objc++-cpp-output.mm
blob: 8b8eeb59907621d317a8fbc68dc2bde6cd88715d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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"