aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr35163.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr35163.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr35163.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr35163.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr35163.c
new file mode 100644
index 00000000..a6f9fda5
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr35163.c
@@ -0,0 +1,14 @@
+extern void abort(void);
+
+int main()
+{
+ signed char a = -30;
+ signed char b = -31;
+ #if(__SIZEOF_INT__ >= 4)
+ if (a > (unsigned short)b)
+#else
+ if ((long) a > (unsigned short)b)
+#endif
+ abort ();
+ return 0;
+}