test: Show countr behavior

This commit is contained in:
Ed Page 2024-07-25 09:14:30 -05:00
parent 3ddcf00482
commit de9928a5f8
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,5 @@
int main() {
uint8 i = 0;
std::countr_one(i);
return 0;
}

View file

@ -1,4 +1,12 @@
bin.name = "typos" bin.name = "typos"
stdin = "" stdin = ""
stdout = "" stdout = """
error: `countr` should be `counter`, `contour`, `country`, `county`
--> ./sample.cpp:3:10
|
3 | std::countr_one(i);
| ^^^^^^
|
"""
stderr = "" stderr = ""
status.code = 2