summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/pr39188-1.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/abi/pr39188-1.h')
-rw-r--r--gcc/testsuite/g++.dg/abi/pr39188-1.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/abi/pr39188-1.h b/gcc/testsuite/g++.dg/abi/pr39188-1.h
new file mode 100644
index 000000000..ece67daae
--- /dev/null
+++ b/gcc/testsuite/g++.dg/abi/pr39188-1.h
@@ -0,0 +1,11 @@
+inline int
+f (int x)
+{
+ static union
+ {
+ int i;
+ };
+ int j = i;
+ i = x;
+ return j;
+}