summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c
new file mode 100644
index 00000000..0850b17e
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c
@@ -0,0 +1,22 @@
+struct foo {unsigned int a : 4;
+ int b : 4;
+};
+int bar(int x){
+ switch (x) {
+ case 1: return 2;
+
+ case 4: return 4;
+
+ case 6: return 8;
+
+ case 10: return 19;
+ } return 0;
+}
+int main(void){
+ bar(10);
+foo:
+ bar(-9);
+ bar(9);
+baz:
+ return 0;
+}