xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/objc++-cpp-output.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang -emit-llvm -x objc++-cpp-output -S %s -o /dev/null
2*f4a2713aSLionel Sambuc// RUN: %clang -emit-llvm -x objc++-cpp-output -S %s -o /dev/null -### 2>&1 | FileCheck %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc// PR13820
5*f4a2713aSLionel Sambuc// REQUIRES: LP64
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc// Should compile without errors
8*f4a2713aSLionel Sambuc@protocol P
9*f4a2713aSLionel Sambuc- (void)m;
10*f4a2713aSLionel Sambuc@end
11*f4a2713aSLionel Sambucvoid f() {}
12*f4a2713aSLionel Sambucclass C {};
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambuc// Make sure the driver is passing all the necessary exception flags.
15*f4a2713aSLionel Sambuc// CHECK: "-fobjc-exceptions"
16*f4a2713aSLionel Sambuc// CHECK: "-fcxx-exceptions"
17*f4a2713aSLionel Sambuc// CHECK: "-fexceptions"
18