diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-13 11:52:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-13 11:52:46 +0200 |
commit | 0143e511f7a5f3595907787a832bee4e3cd03daf (patch) | |
tree | 141d76fb8c18a8258eaa7d20035e22875f1bf0a3 /tests/compiler/sloc-counter/test.std | |
parent | cb9ea47e7825b5073d4d645afb94f6326cb7cf4d (diff) |
Add code stream interface and SLOC counter
Diffstat (limited to 'tests/compiler/sloc-counter/test.std')
-rw-r--r-- | tests/compiler/sloc-counter/test.std | 36 |
1 files changed, 36 insertions, 0 deletions
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 <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 |