]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Driver/objc++-cpp-output.mm
Vendor import of clang tags/RELEASE_33/final r183502 (effectively, 3.3
[FreeBSD/FreeBSD.git] / test / Driver / objc++-cpp-output.mm
1 // RUN: %clang -emit-llvm -x objc++-cpp-output -S %s -o /dev/null
2 // RUN: %clang -emit-llvm -x objc++-cpp-output -S %s -o /dev/null -### 2>&1 | FileCheck %s
3
4 // PR13820
5 // REQUIRES: LP64
6
7 // Should compile without errors
8 @protocol P
9 - (void)m;
10 @end
11 void f() {}
12 class C {};
13
14 // Make sure the driver is passing all the necessary exception flags.
15 // CHECK: "-fobjc-exceptions"
16 // CHECK: "-fcxx-exceptions"
17 // CHECK: "-fexceptions"