// Test: iswalpha with a wint_t value not representable as wchar_t and not WEOF
// Clause: 7.32.1 — For functions accepting wint_t, the value shall be representable as wchar_t or equal WEOF; otherwise UB.
#include <wctype.h>
#include <wchar.h>
#include <stdio.h>

int main(void) {
    wint_t bad = (wint_t)-2; // not WEOF, negative sentinel
    int r = iswalpha(bad);   // UB
    printf("%d\n", r);
    return 0;
}
