summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/10066-Issue_3580.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/10066-Issue_3580.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/10066-Issue_3580.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/10066-Issue_3580.c b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/10066-Issue_3580.c
new file mode 100644
index 00000000..c2baeb12
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/10066-Issue_3580.c
@@ -0,0 +1,35 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ switch (argc)
+ {
+ case -1:
+ {
+ printf("Negative args shouldn't be possible\n");
+ break;
+ }
+ case 0:
+ {
+ printf("Zero args can happen but shouldn't\n");
+ break;
+ }
+ case 1:
+ {
+ printf("One arg\n");
+ break;
+ }
+ case 2:
+ {
+ printf("Two args\n");
+ break;
+ }
+ default:
+ {
+ printf("%i args\n", argc);
+ break;
+ }
+ }
+
+ return 0;
+}