summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoberto Raggi <qtc-committer@nokia.com>2009-01-07 10:42:43 +0100
committerRoberto Raggi <qtc-committer@nokia.com>2009-01-07 10:42:43 +0100
commitf63d56a13b381115c340afee17982e7fcb50cf60 (patch)
treefebafc522383ed79ba130162c6ee450549138604 /tests
parentffbc28cbbd544e4c22f542322a9ea10a7660b8fc (diff)
downloadqt-creator-f63d56a13b381115c340afee17982e7fcb50cf60.tar.gz
Nicer pretty printing of while statements.
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/cplusplus/tests/t1.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/manual/cplusplus/tests/t1.cpp b/tests/manual/cplusplus/tests/t1.cpp
index 186d9fbea7..0151673c70 100644
--- a/tests/manual/cplusplus/tests/t1.cpp
+++ b/tests/manual/cplusplus/tests/t1.cpp
@@ -20,6 +20,16 @@ class Class {
else if (b == 20) return 2;
else if (c == 30) { x = 1; }
}
+
+ void test_while() {
+ while (int a = 1) {
+ exit();
+ }
+
+ while (x==1) do_something_here();
+
+ while (x==2) if(a==1) c(); else if (a==2) c(); else c3();
+ }
};
class Derived: public Class {