summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34149-bug_1139.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34149-bug_1139.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34149-bug_1139.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34149-bug_1139.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34149-bug_1139.cpp
new file mode 100644
index 00000000..88243de7
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34149-bug_1139.cpp
@@ -0,0 +1,38 @@
+void a()
+{
+ if((tmp == nullptr) ||
+ ((tmp->GetType() != CT_NUMBER) &&
+ (tmp->GetType() != CT_SIZEOF) &&
+ !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
+ (tmp->GetType() == CT_NEWLINE))
+ {
+ next->SetType(CT_LABEL_COLON);
+ }
+ else if ((tmp == nullptr) ||
+ ((tmp->GetType() != CT_NUMBER) &&
+ (tmp->GetType() != CT_SIZEOF) &&
+ !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
+ (tmp->GetType() == CT_NEWLINE))
+ {
+ next->SetType(CT_LABEL_COLON);
+ }
+
+
+ if ((tmp == nullptr) ||
+ ((tmp->GetType() != CT_NUMBER) &&
+ (tmp->GetType() != CT_SIZEOF) &&
+ !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
+ (tmp->GetType() == CT_NEWLINE))
+ {
+ next->SetType(CT_LABEL_COLON);
+ }
+
+ if ((tmp == nullptr) ||
+ ((tmp->GetType() != CT_NUMBER) &&
+ (tmp->GetType() != CT_SIZEOF) &&
+ !(tmp->GetFlags() & (PCF_IN_STRUCT | PCF_IN_CLASS))) ||
+ (tmp->GetType() == CT_NEWLINE))
+ {
+ next->SetType(CT_LABEL_COLON);
+ }
+}