Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Vogt2019-03-30 16:05:17 -0400
committerNathan Ridge2019-03-30 19:10:09 -0400
commitc2779e8d3e2a57f9cc879d7bc3f1bf8e386dee54 (patch)
treed01d9caa29ab5dc3a7c7add8387a486ff1d6b5f3 /core/org.eclipse.cdt.core.tests
parentfc45110844ac22ab4726cc5360ccae8c677dbaf6 (diff)
downloadorg.eclipse.cdt-c2779e8d3e2a57f9cc879d7bc3f1bf8e386dee54.tar.gz
org.eclipse.cdt-c2779e8d3e2a57f9cc879d7bc3f1bf8e386dee54.tar.xz
org.eclipse.cdt-c2779e8d3e2a57f9cc879d7bc3f1bf8e386dee54.zip
Bug 545957 - Fix for brace elision rule
Change-Id: Ie470c1d9a986beb1b177e3d3d571071f6ed1b8f8 Signed-off-by: Hannes Vogt <hannes@havogt.de>
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
index 37d4cb0e647..a1bdad7bcc1 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
@@ -13010,6 +13010,19 @@ public class AST2CPPTests extends AST2CPPTestBase {
parseAndCheckBindings();
}
+ // struct S1 {
+ // };
+ // struct S2 {
+ // S1 s1;
+ // };
+ // auto f() {
+ // auto s1 = S1 { };
+ // return S2 { s1 };
+ // }
+ public void testBraceElisionForAggregateInit7_545957() throws Exception {
+ parseAndCheckImplicitNameBindings();
+ }
+
// struct type{
// int a;
// };

Back to the top