diff options
author | Nathan Ridge | 2018-07-01 17:26:07 +0000 |
---|---|---|
committer | Nathan Ridge | 2018-07-08 18:28:34 +0000 |
commit | 52e1ccf3bc64257067a6b512052eb28f0bebc033 (patch) | |
tree | c698ebfeef5f6823c48bac273928fa134c42b655 /core/org.eclipse.cdt.core.tests/parser | |
parent | 7f5ed929a93b72f09e71161f5483b91e6a224ff8 (diff) | |
download | org.eclipse.cdt-52e1ccf3bc64257067a6b512052eb28f0bebc033.tar.gz org.eclipse.cdt-52e1ccf3bc64257067a6b512052eb28f0bebc033.tar.xz org.eclipse.cdt-52e1ccf3bc64257067a6b512052eb28f0bebc033.zip |
Bug 535777 - Disallow class body in trailing return type
Change-Id: I6e4d015cb3e1b12486f336db94ed71c234142b60
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser')
-rw-r--r-- | core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 11 |
1 files changed, 11 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 0402f2bcabd..39bc9c3fade 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 @@ -12710,4 +12710,15 @@ public class AST2CPPTests extends AST2CPPTestBase { public void testStaticAssertWithoutMessage_534808() throws Exception { parseAndCheckBindings(); } + + // struct MyStruct { + // unsigned i; + // }; + // + // auto myFunA() -> struct MyStruct { + // return {5}; + // }; + public void testElabSpecInTrailingReturn_535777() throws Exception { + parseAndCheckBindings(); + } } |