summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/30099-bug_1127.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/30099-bug_1127.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/30099-bug_1127.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/30099-bug_1127.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/30099-bug_1127.cpp
new file mode 100644
index 00000000..0109baaf
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/30099-bug_1127.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+
+template<size_t T>
+class MyFoo
+{
+public:
+MyFoo()
+{
+ std::cout << T << std::endl;
+}
+};
+
+int main()
+{
+ const size_t mySize = INT8_MAX * 2;
+ MyFoo<mySize * 2> foo1;
+ MyFoo<mySize / 2> foo2;
+ MyFoo<2 * mySize> foo1;
+ MyFoo<2 / mySize> foo2;
+}