blob: 63b15d8c18b2ff1008d7fd5979375be4b2b28324 [file] [log] [blame]
Nico Webered8080c2011-08-13 23:13:37 +00001// RUN: %clang -x objc++-cpp-output -c %s -o /dev/null
Chad Rosier808baaf2012-11-16 22:31:39 +00002// RUN: %clang -x objc++-cpp-output -c %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"