aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/complit5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/complit5.C')
-rw-r--r--gcc/testsuite/g++.dg/ext/complit5.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/complit5.C b/gcc/testsuite/g++.dg/ext/complit5.C
new file mode 100644
index 00000000000..c406c998046
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ext/complit5.C
@@ -0,0 +1,12 @@
+// PR c++/25417
+// { dg-options "" }
+
+struct object {
+ int a;
+ int b;
+};
+
+void f (int c, int d)
+{
+ object o = ((object){ a : c, b : d});
+}