libdpf/thirdparty/hedley/test/fallthrough.c
Ryan Henry e4e666f459 Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 14:08:32 -06:00

21 lines
308 B
C

#include "../hedley.h"
int main(int argc, char* argv[HEDLEY_ARRAY_PARAM(argc)]) {
int foo = 0;
HEDLEY_STATIC_CAST(void, argv);
switch (argc) {
case 2:
foo = 1;
break;
case 1:
foo = 2;
HEDLEY_FALL_THROUGH;
default:
foo = 3;
break;
}
return foo;
}