mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 17:34:33 -05:00
* 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
18 lines
277 B
Plaintext
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";
|
|
}
|