Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/byte2.C

raw
1 // { dg-do compile { target c++17 } }
2 // { dg-options "-Wall" }
3
4 #include <cstddef>
5
6 bool white_space(std::byte x) {
7 switch (x) {
8 case std::byte{' '}: case std::byte{'\t'}: case std::byte{'\v'}:
9 case std::byte{'\f'}: case std::byte{'\n'}:
10 return true;
11 default:
12 return false;
13 }
14 }