From 0143e511f7a5f3595907787a832bee4e3cd03daf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 13 Sep 2009 11:52:46 +0200 Subject: Add code stream interface and SLOC counter --- tests/compiler/sloc-counter/test.std | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/compiler/sloc-counter/test.std (limited to 'tests/compiler/sloc-counter/test.std') diff --git a/tests/compiler/sloc-counter/test.std b/tests/compiler/sloc-counter/test.std new file mode 100644 index 0000000..00b9c31 --- /dev/null +++ b/tests/compiler/sloc-counter/test.std @@ -0,0 +1,36 @@ +// C++ comment + // C++ comment + +/* C comment */ + +/* Multiline + C + Comment + + +*/ + +#include + +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 -- cgit v1.1