summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/ipareference2_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto/ipareference2_1.c')
-rw-r--r--gcc/testsuite/gcc.dg/lto/ipareference2_1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/ipareference2_1.c b/gcc/testsuite/gcc.dg/lto/ipareference2_1.c
new file mode 100644
index 000000000..c7653b080
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/ipareference2_1.c
@@ -0,0 +1,13 @@
+void abort (void);
+extern int *a[5];
+extern int b,c,d,e,f;
+__attribute__ ((noinline, noclone))
+void
+other_ltrans (void)
+{
+ if (!__builtin_constant_p (a[1]==a[2]))
+ abort ();
+ if (a[1]!=a[2])
+ abort ();
+ *(a[1])=11;
+}