Filipe Cabecinhas | 1f72a00 | 2015-03-02 19:11:53 +0000 | [diff] [blame] | 1 | // 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 Weber | ed8080c | 2011-08-13 23:13:37 +0000 | [diff] [blame] | 3 | |
NAKAMURA Takumi | cb0a08a | 2012-09-12 14:26:42 +0000 | [diff] [blame] | 4 | // PR13820 |
| 5 | // REQUIRES: LP64 |
| 6 | |
Nico Weber | ed8080c | 2011-08-13 23:13:37 +0000 | [diff] [blame] | 7 | // Should compile without errors |
| 8 | @protocol P |
| 9 | - (void)m; |
| 10 | @end |
| 11 | void f() {} |
| 12 | class C {}; |
Chad Rosier | 808baaf | 2012-11-16 22:31:39 +0000 | [diff] [blame] | 13 | |
| 14 | // Make sure the driver is passing all the necessary exception flags. |
| 15 | // CHECK: "-fobjc-exceptions" |
| 16 | // CHECK: "-fcxx-exceptions" |
| 17 | // CHECK: "-fexceptions" |