aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/960801-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/960801-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/960801-1.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/960801-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/960801-1.c
new file mode 100644
index 00000000..17072691
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/960801-1.c
@@ -0,0 +1,32 @@
+unsigned
+f ()
+{
+ long long l2;
+ unsigned short us;
+ unsigned long long ul;
+ short s2;
+
+ ul = us = l2 = s2 = -1;
+ return ul;
+}
+
+unsigned long long
+g ()
+{
+ long long l2;
+ unsigned short us;
+ unsigned long long ul;
+ short s2;
+
+ ul = us = l2 = s2 = -1;
+ return ul;
+}
+
+main ()
+{
+ if (f () != (unsigned short) -1)
+ abort ();
+ if (g () != (unsigned short) -1)
+ abort ();
+ exit (0);
+}