aboutsummaryrefslogtreecommitdiff
path: root/tests/compiler/sloc-counter/test.std
blob: 00b9c3117aa14a5e140b45d4ff3e2ec22f19ad40 (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
35
36
// 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;
}

18