Debian Codegraph @

test cases/cmake/4 code gen/subprojects/cmCodeGen/main.cpp

raw
1 #include <iostream>
2 #include <fstream>
3
4 using namespace std;
5
6 int main(int argc, const char *argv[]) {
7 if(argc < 2) {
8 cerr << argv[0] << " requires an output file!" << endl;
9 return 1;
10 }
11 ofstream out(argv[1]);
12 out << R"(
13 #include "test.hpp"
14
15 std::string getStr() {
16 return "Hello World";
17 }
18 )";
19
20 return 0;
21 }