blob: cfd1efbf84645a2b97bf12887d95b5b51ea3c997 [file] [log] [blame]
Daniel Dunbar5618e982009-12-15 22:01:24 +00001// RUN: %clang -E -fexceptions %s -o - | FileCheck --check-prefix=CHECK-EXCEPTIONS %s
2// RUN: %clang -E -fno-exceptions %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s
Ted Kremenek5ef26fb2009-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