summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/bug_1127.cpp
blob: 9ee98743bdb12e7602c8d99ec42df1b338ce32b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}