From 8286ac511144e4f17d34eac9affb97e50646344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:25:44 +0200 Subject: Imported Upstream version 4.0.0 --- libcutl/tests/compiler/sloc-counter/test.cxx | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libcutl/tests/compiler/sloc-counter/test.cxx (limited to 'libcutl/tests/compiler/sloc-counter/test.cxx') diff --git a/libcutl/tests/compiler/sloc-counter/test.cxx b/libcutl/tests/compiler/sloc-counter/test.cxx new file mode 100644 index 0000000..ff0f5b2 --- /dev/null +++ b/libcutl/tests/compiler/sloc-counter/test.cxx @@ -0,0 +1,34 @@ +// 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; +} -- cgit v1.2.3