Files
compiler-explorer/examples/cpp2_cppfront/default.cpp2
Matt Godbolt a8a666aeac Fixes for cppfront (#4076)
* Rename cppx_cppfront to cpp2_cppfront
* Add some blurb about the compiler
* Some syntax highlighting
* Better output highlighting
* Some form of line tracking and filtering
2022-09-20 07:42:41 -05:00

18 lines
277 B
Plaintext

#include <iostream>
#include <string>
name: () -> std::string = {
s: std::string = "world";
decorate(s);
return s;
}
decorate: (inout s: std::string) = {
s = "[" + s + "]";
}
auto main() -> int {
// name();
std::cout << "Hello " << name() << "\n";
}