From a15cf65c44d5c224169c32ef5495b68c758134b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 18 May 2014 16:08:14 +0200 Subject: Imported Upstream version 3.3.0.2 --- .../tests/indentation/cxx/output.cxx | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 libbackend-elements/tests/indentation/cxx/output.cxx (limited to 'libbackend-elements/tests/indentation/cxx/output.cxx') diff --git a/libbackend-elements/tests/indentation/cxx/output.cxx b/libbackend-elements/tests/indentation/cxx/output.cxx new file mode 100644 index 0000000..1a22bc7 --- /dev/null +++ b/libbackend-elements/tests/indentation/cxx/output.cxx @@ -0,0 +1,75 @@ +if (true) +{ + // Hello there + // + a (); +} +else +{ + b (); +} + +if (false) +{ + if (true) + { + // test + } + else + { + // test + b (); + } +} + +namespace a +{ + void f (); +} + +#if defined(__HP_aCC) && __HP_aCC <= 39999 +#include +#endif + +namespace b +{ + void f (); +} + +do + f (); +while (false); + +do +{ + f (); +} +while (false); + +do +{ + if (f ()) + { + g (); + } +} +while (false); + +do +{ + do + f (); + while (false); +} +while (false); + +do +{ + do + { + f (); + } + while (false); +} +while (false); + -- cgit v1.2.3