]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/Lexer/has_feature_exceptions.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / Lexer / has_feature_exceptions.cpp
CommitLineData
223e47cc
LB
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
3
4#if __has_feature(cxx_exceptions)
5int foo();
6#else
7int bar();
8#endif
9
10// CHECK-EXCEPTIONS: foo
11// CHECK-NO-EXCEPTIONS: bar