summaryrefslogtreecommitdiff
path: root/ctype-function-parameter-not-representable.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctype-function-parameter-not-representable.c')
-rw-r--r--ctype-function-parameter-not-representable.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ctype-function-parameter-not-representable.c b/ctype-function-parameter-not-representable.c
new file mode 100644
index 0000000..0fb5698
--- /dev/null
+++ b/ctype-function-parameter-not-representable.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <ctype.h>
+#include <limits.h>
+
+int main(void)
+{
+ int c = UCHAR_MAX + 1;
+ if (c == EOF) {
+ c++;
+ }
+ return isalpha(c);
+}