summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33064-if_chain_braces.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33064-if_chain_braces.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33064-if_chain_braces.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33064-if_chain_braces.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33064-if_chain_braces.cpp
new file mode 100644
index 00000000..c42ef73a
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33064-if_chain_braces.cpp
@@ -0,0 +1,53 @@
+
+int foo() {
+ if ( a ) {
+ return 1;
+ }
+ else if ( b ) {
+ return 2;
+ }
+
+ if ( a ) {
+ return 3;
+ }
+ else if ( b ) {
+ return 4;
+ }
+ else {
+ a = 5;
+ return 5;
+ }
+
+ if ( a ) {
+ return 6;
+ }
+ else{
+ return 7;
+ }
+
+ if ( a )
+ return 8;
+
+ if ( b )
+ return 9;
+
+ if ( b ) {
+ { b = 5; }
+ return 10;
+ }
+
+ if ( a ) {
+ return 11;
+ }
+ else {
+ return 12;
+ }
+
+ if ( a ) {
+ return 13;
+ } else if ( b ) {
+ return 14;
+ } else {
+ return 15;
+ }
+}