summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/or386.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/unsorted/or386.c')
-rwxr-xr-xgcc/testsuite/gcc.c-torture/unsorted/or386.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/unsorted/or386.c b/gcc/testsuite/gcc.c-torture/unsorted/or386.c
new file mode 100755
index 0000000..ad49f35
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/unsorted/or386.c
@@ -0,0 +1,13 @@
+typedef int xtype;
+
+xtype
+foo (a)
+ xtype a;
+{
+ return a | 0x7f;
+}
+
+main ()
+{
+ printf ("%08x\n", foo (-1));
+}