summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30326-indent_off_after_return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30326-indent_off_after_return.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30326-indent_off_after_return.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30326-indent_off_after_return.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30326-indent_off_after_return.cpp
new file mode 100644
index 00000000..5c81f9e1
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30326-indent_off_after_return.cpp
@@ -0,0 +1,38 @@
+int foo1()
+{
+ return std::pair<int, int>{
+ 1, 2
+ }.first;
+}
+
+int foo2()
+{
+ return
+ int{3} & 2;
+}
+
+int foo3()
+{
+ constexpr static int x = 3;
+ return
+ decltype(x) {x} & 2;
+}
+
+int foo4()
+{
+ return
+ new Type();
+}
+
+int foo5()
+{
+ return
+ veryLongMethodCall(
+ arg1,
+ longMethodCall(
+ methodCall(
+ arg2, arg3
+ ), arg4
+ )
+ );
+}