summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-11-18 22:24:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-11-18 22:24:33 +0900
commit3b0c3b8206964b85bf3716c962d26dd15c4f285f (patch)
tree2f0973dbf96c2892d19a55b6f846f130e7399a48 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c
parentff287d2f48d4f4253bf84f19bd7fe937b61ede45 (diff)
downloadextra-dependencies-3b0c3b8206964b85bf3716c962d26dd15c4f285f.tar.gz
extra-dependencies-3b0c3b8206964b85bf3716c962d26dd15c4f285f.zip
Remove uncrustify-trinity.HEADmaster
It is no longer necessary to maintain a customize trinity version. Upstream version can be used as is. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c199
1 files changed, 0 insertions, 199 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c
deleted file mode 100644
index 3f4c76fb..00000000
--- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00514-my_infile.c
+++ /dev/null
@@ -1,199 +0,0 @@
-#include <stdlib.h> /* exit */
-#include <unistd.h> /* _exit */
-
-int foo(int);
-
-extern int baz;
-
-int foo (int bar)
-{
-/* Switch blocks: */
- switch (c)
- {
- case 1:
- case 2:
- bar += 2;
- break;
-
- case 3:
- bar++;
- baz++;
-
- case 4:
- break;
-
- default:
- break;
- }
-
- switch (bar)
- {
- case 0:
- bar++;
- break;
-
- case 1:
- bar++;
- return bar;
-
- case 2:
- bar++;
- goto x;
-
- case 3:
- bar++;
-
- /*FALLTHROUGH*/
- case 4:
- bar++;
- exit(bar);
-
- /*NOTREACHED*/
- case 5:
- bar++;
- _exit(bar);
-
- /*NOTREACHED*/
- case 6:
- bar++;
- if (baz > 2)
- {
- break; /* inside if statement; don't align with case */
- }
- else
- {
- return baz; /* inside if statement; don't align with case */
- }
-
- /*NOTREACHED*/
- case 7:
- switch (baz)
- {
- case 0: /* do nothing */
- break;
-
- case 1:
- return baz;
-
- case 2:
- baz--;
- goto x;
-
- case 3:
- exit(baz);
-
- /*NOTREACHED*/
- case 4:
- _exit(baz);
-
- /*NOTREACHED*/
- case 5:
- baz--;
-
- /*FALLTHROUGH*/
- default:
- for (; baz > 0; baz--) {
- if (baz == bar)
- {
- break; /* break out of for loop, unrelated to switch
- statement */
- }
- else
- {
- bar++;
- }
- }
- break;
- }
- break;
-
- default:
- bar++;
- break;
- }
-
-
- switch (a)
- {
- case 0:
- // code
- break;
- }
-
-
- switch (a)
- {
- case 0:
- if (k > 0)
- {
- break;
- }
- z = 1;
- break;
-
- case 1:
- if (k < 0)
- {
- break;
- }
- z = 2;
-
- case 2:
- z = 3;
- break;
- }
-
-
- return bar;
-}
-
-
-int foo2 (int op)
-{
- switch (op)
- {
- case 1:
- do_something();
- break;
-
- case 2:
- do_something_else();
-
- case 3:
- do_something_different();
- do_something_more();
- break;
- }
- return -1;
-}
-
-int foo3 (int op)
-{
- for (int nnn = op; nnn <= 100; nnn++)
- {
- switch (nnn)
- {
- case 1:
- do_something();
- break;
-
- case 2:
- do_something_else();
-
- case 3:
- if (do_something_different())
- {
- do_this();
- break;
- }
- do_something_more();
- break;
-
- default:
- ; // nothing
- break;
-
- }
- }
- return -1;
-}