aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/920612-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/920612-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/920612-1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/920612-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/920612-1.c
new file mode 100644
index 00000000..8553de2c
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/920612-1.c
@@ -0,0 +1,7 @@
+/* { dg-options "-fwrapv" } */
+
+extern void abort (void);
+extern void exit (int);
+
+int f(j)int j;{return++j>0;}
+int main(){if(f((~0U)>>1))abort();exit(0);}