blob: 8b8eeb59907621d317a8fbc68dc2bde6cd88715d [file] [log] [blame]
Filipe Cabecinhas1f72a002015-03-02 19:11:53 +00001// RUN: %clang -fexceptions -emit-llvm -x objc++-cpp-output -S %s -o /dev/null
2// RUN: %clang -fexceptions -emit-llvm -x objc++-cpp-output -S %s -o /dev/null -### 2>&1 | FileCheck %s
Nico Webered8080c2011-08-13 23:13:37 +00003
NAKAMURA Takumicb0a08a2012-09-12 14:26:42 +00004// PR13820
5// REQUIRES: LP64
6
Nico Webered8080c2011-08-13 23:13:37 +00007// Should compile without errors
8@protocol P
9- (void)m;
10@end
11void f() {}
12class C {};
Chad Rosier808baaf2012-11-16 22:31:39 +000013
14// Make sure the driver is passing all the necessary exception flags.
15// CHECK: "-fobjc-exceptions"
16// CHECK: "-fcxx-exceptions"
17// CHECK: "-fexceptions"