diff options
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx17/CXX17ExtensionsTests.java')
-rw-r--r-- | core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx17/CXX17ExtensionsTests.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx17/CXX17ExtensionsTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx17/CXX17ExtensionsTests.java new file mode 100644 index 00000000000..b91cb51f6bd --- /dev/null +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx17/CXX17ExtensionsTests.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.cdt.core.parser.tests.ast2.cxx17; + +import org.eclipse.cdt.core.parser.tests.ast2.AST2CPPTestBase; + +import junit.framework.TestSuite; + +public class CXX17ExtensionsTests extends AST2CPPTestBase { + + public static TestSuite suite() { + return suite(CXX17ExtensionsTests.class); + } + + // struct Base { + // int foo; + // }; + // struct MyStruct : public Base { + // int a; + // }; + // + // int main() { + // MyStruct test = { {0}, 9 }; + // } + public void testAggregateInitializationOfBaseClass_549367() throws Exception { + parseAndCheckImplicitNameBindings(); + } +} |