aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_direct_string_constant_usage.in
blob: e43232f0d1193bef4236a8e9ca7c952799458fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
      #include <iostream>
      template<int i>
      void printText( const char (&text)[ i ] )
      {
         std::cout << text;
      }
      int main()
      {
        printText( "some string constant" );
        return 0;
      }