summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-12-04 19:16:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-12-04 19:38:30 +0900
commitfdcd72088371b3d8dfd31f2a5159861ce0be5535 (patch)
tree06c160cc34157344f62b6c19af297858a0e57157 /debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c
parenta5d7db3b2c6171ea9e76b84155d2dfb66c243e5a (diff)
downloadextra-dependencies-fdcd72088371b3d8dfd31f2a5159861ce0be5535.tar.gz
extra-dependencies-fdcd72088371b3d8dfd31f2a5159861ce0be5535.zip
uncrustify-trinity: updated based on upstream version 0.76.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c77
1 files changed, 77 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c
new file mode 100644
index 00000000..67adaddd
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/case-nl_before_return.c
@@ -0,0 +1,77 @@
+int foo(int arg)
+{
+ switch (arg)
+ {
+ case 0: return 1;
+ case 1:
+ return 2;
+ case 2:
+ printf("Hello world!\n");
+ return 3;
+ case 3:
+ {
+ int a = 4;
+ return a;
+ }
+ case 4:
+
+ return 5;
+ case 5:
+ printf("Hello world!\n");
+
+ return 6;
+ case 6:
+ {
+ int a = 7;
+
+ return a;
+ }
+ case 7: /* comment */ return 8;
+ case 8:
+ /* C-style comment */
+ return 9;
+ case 9: /* trailing comment */
+ return 10;
+ case 10: /* trailing comment */
+ /* C-style comment */
+ return 11;
+ case 11:
+ // C++-style comment
+ return 12;
+ case 12:
+ // Multi-line
+ // C++-style comment
+ return 13;
+ case 13: // trailing comment
+ // Multi-line
+ // C++-style comment
+ return 14;
+ case 14:
+
+ // Multi-line
+ // C++-style comment
+ return 15;
+ case 15:
+
+ /* C-style comment */
+ return 16;
+ case 16:
+ /*
+ * Multi-line C-style comment
+ */
+ return 17;
+ case 17:
+ /*--------------------*/
+ /* Multi-part comment */
+ /*--------------------*/
+ return 18;
+ case 18:
+ /*---------------------*/
+ // Mixed-style comment
+ /*---------------------*/
+ return 19;
+ default:
+ return arg++;
+ }
+ return 0;
+}