diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/33066-if_chain_braces.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/33066-if_chain_braces.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/33066-if_chain_braces.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/33066-if_chain_braces.cpp new file mode 100644 index 00000000..0ef6478b --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/33066-if_chain_braces.cpp @@ -0,0 +1,50 @@ + +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; + } +} |