summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1004.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1004.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1004.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1004.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1004.cpp
new file mode 100644
index 00000000..3287be1c
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1004.cpp
@@ -0,0 +1,14 @@
+int main()
+{
+ int b = 3;
+ int* p = &b;
+
+ // Should stay as b * *p
+ int a = b * *p;
+
+ // Correctly formats as a * b;
+ int c = b*a;
+
+ // Correctly formats as d = *p;
+ int d = * p;
+}