summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/c/pos_conditional.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/c/pos_conditional.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/c/pos_conditional.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/c/pos_conditional.c b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/c/pos_conditional.c
new file mode 100644
index 00000000..100545e5
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/c/pos_conditional.c
@@ -0,0 +1,14 @@
+void foo(void)
+{
+ // conditional colon
+ a = bar() ? 2 :
+ 3;
+ a = bar() ? 2
+ : 3;
+
+ // conditional question
+ a = bar() ?
+ 2 : 3;
+ a = bar()
+ ? 2 : 3;
+}