aboutsummaryrefslogtreecommitdiff
path: root/tests/compiler/sloc-counter/test.cxx
blob: ff0f5b2fa9e90c440dae1c82a413133a0f98b50a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// C++ comment
  // C++ comment

/* C comment */

/* Multiline
   C
   Comment


*/

#include <iostream>

char str[] = "multi\
line\
string\
literal";

using namespace std;


int main(
  int argc /*count*/,
  char* argv[] /*array*/)
{
  /* comment start */ int x = 0;
  char* s = 
  /* comment start */"foo";
  int y = 2
  /* tricky stuff *//
  2;
  cerr << "Hello, \"world!" << '\'' << endl;
}