aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/char-constant-unsigned.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/char-constant-unsigned.c')
-rw-r--r--validation/char-constant-unsigned.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/validation/char-constant-unsigned.c b/validation/char-constant-unsigned.c
new file mode 100644
index 00000000..d5642b16
--- /dev/null
+++ b/validation/char-constant-unsigned.c
@@ -0,0 +1,9 @@
+int test(void) { return '\377' == 255; }
+
+/*
+ * check-name: char-constant-unsigned
+ * check-command: test-linearize -Wno-decl -funsigned-char $file
+ *
+ * check-output-ignore
+ * check-output-returns: 1
+ */