summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09604-indent_ternary-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09604-indent_ternary-2.c')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09604-indent_ternary-2.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09604-indent_ternary-2.c b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09604-indent_ternary-2.c
new file mode 100644
index 00000000..e6d3576c
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09604-indent_ternary-2.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;
+ }
+}
+