summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33053-for_auto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33053-for_auto.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33053-for_auto.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33053-for_auto.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33053-for_auto.cpp
new file mode 100644
index 00000000..073556c9
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33053-for_auto.cpp
@@ -0,0 +1,16 @@
+void foo()
+{
+ for (auto const& item : list)
+ bar(item);
+ for (const auto& item : list)
+ bar(item);
+ for (auto& item : list)
+ bar(item);
+
+ auto* var = bar();
+ auto& var = bar();
+ auto var = bar();
+ auto const* var = bar();
+ auto const& var = bar();
+ auto const var = bar();
+} \ No newline at end of file