aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr113359-1_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto/pr113359-1_1.c')
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr113359-1_1.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/pr113359-1_1.c b/gcc/testsuite/gcc.dg/lto/pr113359-1_1.c
new file mode 100644
index 0000000..f51b84b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr113359-1_1.c
@@ -0,0 +1,38 @@
+#define CI 0xdeadbeef
+#define CL1 0xdeaddead1234beef
+#define CL2 0xdead1234deadbeef
+
+struct SA
+{
+ unsigned int ax;
+ unsigned long ay;
+ unsigned long az;
+};
+
+struct SB
+{
+ unsigned long bx;
+ unsigned int by;
+ unsigned long bz;
+};
+
+struct ZA
+{
+ int p;
+ struct SA s;
+ short q;
+};
+
+struct ZB
+{
+ int p;
+ struct SB s;
+ short q;
+};
+
+void __attribute__((noinline))
+getb (struct SB *d, struct ZB *p)
+{
+ struct SB tmp = p->s;
+ *d = tmp;
+}