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