summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/09603-indent_ternary-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/09603-indent_ternary-1.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/09603-indent_ternary-1.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/09603-indent_ternary-1.c b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/09603-indent_ternary-1.c
new file mode 100644
index 00000000..f9200886
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/c/09603-indent_ternary-1.c
@@ -0,0 +1,34 @@
+void foo(void)
+{
+ int a = x ? y :
+ z,
+ b = x ? (y) :
+ (z),
+ c = x ? *y :
+ *z,
+ d = x ? &y :
+ &z;
+
+
+ if (x ? y :
+ z)
+ {
+ baz;
+ }
+ if (x ? (y) :
+ (z))
+ {
+ baz;
+ }
+ if (x ? *y :
+ *z)
+ {
+ baz;
+ }
+ if (x ? &y :
+ &z)
+ {
+ baz;
+ }
+}
+