diff options
author | Michele Calgaro <[email protected]> | 2023-11-18 17:53:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-19 19:27:29 +0900 |
commit | c0a6f1b84c84749908961579b84513fd9f9d9eac (patch) | |
tree | ace7ba60cb031acd3a1f4ff10f7bbc5668fa801f /debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30353-indent_ternary-1.cpp | |
parent | 52e5ffe140f0f4402e97936447bc9a606045d2b5 (diff) | |
download | extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.tar.gz extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.zip |
uncrustify-trinity: updated based on upstream version 0.78.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30353-indent_ternary-1.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30353-indent_ternary-1.cpp | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30353-indent_ternary-1.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30353-indent_ternary-1.cpp new file mode 100644 index 00000000..c5fa89e5 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30353-indent_ternary-1.cpp @@ -0,0 +1,76 @@ +namespace ns1 { +int getval(void); +void baz(void); +} + + +int foo(int in1, int in2, float in3, double in4) { + int a; int b; int c; int d; + int e; int f; int g; int h; + + a = (in1 < 10) ? in2 : + ns1::getval(); + + b = (in1 < 20) ? in2 : + int(in3 * 0.4); + + c = (in1 < 30) ? in2 : + 1.25 * in4; + + d = (in1 < 40) ? in2 : + -3; + + e = (in1 < 50) ? in2 : + ~3 ^ in1; + + f = (in1 < 60) ? in2 : + !(in1 == in2); + + g = (in1 < 70) ? in2 : + ++in1; + + h = (in1 < 80) ? in2 : + in1 * 2; + + if ((in1 < 10) ? in2 : + ns1::getval()) { + ns1::baz(); + } + + if ((in1 < 20) ? in2 : + int(in3 * 0.4)) { + ns1::baz(); + } + + if ((in1 < 30) ? in2 : + 1.25 * in4) { + ns1::baz(); + } + + if ((in1 < 40) ? in2 : + -3) { + ns1::baz(); + } + + if ((in1 < 50) ? in2 : + ~3 ^ in1) { + ns1::baz(); + } + + if ((in1 < 60) ? in2 : + !(in1 == in2)) { + ns1::baz(); + } + + if ((in1 < 70) ? in2 : + ++in1) { + ns1::baz(); + } + + if ((in1 < 80) ? in2 : + in1 * 2) { + ns1::baz(); + } + + return a+b+c+d+e+f+g+h; +} |