Daniel Dunbar | 9fde9c4 | 2010-06-29 16:52:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E -fexceptions %s -o - | FileCheck --check-prefix=CHECK-EXCEPTIONS %s |
2 | // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s | ||||
Ted Kremenek | 7d9bd42 | 2009-12-03 01:34:15 +0000 | [diff] [blame] | 3 | |
4 | #if __has_feature(cxx_exceptions) | ||||
5 | int foo(); | ||||
6 | #else | ||||
7 | int bar(); | ||||
8 | #endif | ||||
9 | |||||
10 | // CHECK-EXCEPTIONS: foo | ||||
11 | // CHECK-NO-EXCEPTIONS: bar |