summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr28289.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr28289.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr28289.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr28289.c b/gcc/testsuite/gcc.c-torture/execute/pr28289.c
new file mode 100644
index 000000000..93e922cbb
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/pr28289.c
@@ -0,0 +1,33 @@
+extern int ok (int);
+extern void exit ();
+static int gen_x86_64_shrd (int);
+static int
+gen_x86_64_shrd(int a __attribute__ ((__unused__)))
+{
+ return 0;
+}
+
+extern int gen_x86_shrd_1 (int);
+extern void ix86_split_ashr (int);
+
+void
+ix86_split_ashr (int mode)
+{
+ (mode != 0
+ ? ok
+ : gen_x86_64_shrd) (0);
+}
+
+volatile int one = 1;
+int
+main (void)
+{
+ ix86_split_ashr (one);
+ return 1;
+}
+
+int
+ok (int i)
+{
+ exit (i);
+}