Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts')
-rw-r--r--core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts
index 41cd52b2d28..64fe167a370 100644
--- a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts
+++ b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterStatementTestSource.awts
@@ -421,4 +421,19 @@ void f()
case 42:
break;
}
+}
+
+//!Range-based for with structured binding
+//%CPP
+struct S
+{
+ int i;
+ float f;
+};
+
+void rangedBasedForContext()
+{
+ S esses[] = {S{}, S{}, S{}};
+ for (auto [l, r]: esses){
+ }
} \ No newline at end of file

Back to the top