diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/bug_1127.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/bug_1127.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/bug_1127.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/bug_1127.cpp new file mode 100644 index 00000000..9ee98743 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/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; +} |