blob: bb5dc0c1336261a8378e5e145eb05805fc5eb7b2 [file] [log] [blame]
Daniel Dunbar9fde9c42010-06-29 16:52:24 +00001// 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 Kremenek7d9bd422009-12-03 01:34:15 +00003
4#if __has_feature(cxx_exceptions)
5int foo();
6#else
7int bar();
8#endif
9
10// CHECK-EXCEPTIONS: foo
11// CHECK-NO-EXCEPTIONS: bar