summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/modernize-use-bool-literals.cpp
blob: 58b7ec8f29a08ace43dd556d6333073a234d6848 (plain)
1
2
3
4
5
void foo() {
  bool p = 1;
  bool f = static_cast<bool>(1);
  bool x = p ? 1 : 0;
}