diff options
Diffstat (limited to 'test/syntax/code/cpp')
-rw-r--r-- | test/syntax/code/cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/syntax/code/cpp b/test/syntax/code/cpp new file mode 100644 index 00000000..37497ac5 --- /dev/null +++ b/test/syntax/code/cpp @@ -0,0 +1,15 @@ +#include <iostream> +#define IABS(x) ((x) < 0 ? -(x) : (x)) + +int main(int argc, char *argv[]) { + + /* An annoying "Hello World" example */ + for (auto i = 0; i < 0xFFFF; i++) + cout << "Hello, World!" << endl; + + char c = '\n'; + unordered_map <string, vector<string> > m; + m["key"] = "\\\\"; // this is an error + + return -2e3 + 12l; +} |