diff options
Diffstat (limited to 'CompilerDriver/cc2/regression-tests/mixed-allcpp1-hello.cpp2')
| -rw-r--r-- | CompilerDriver/cc2/regression-tests/mixed-allcpp1-hello.cpp2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CompilerDriver/cc2/regression-tests/mixed-allcpp1-hello.cpp2 b/CompilerDriver/cc2/regression-tests/mixed-allcpp1-hello.cpp2 new file mode 100644 index 0000000..d4aa9de --- /dev/null +++ b/CompilerDriver/cc2/regression-tests/mixed-allcpp1-hello.cpp2 @@ -0,0 +1,15 @@ + +// Step 1: rename .cpp to .cpp2 + +#include <iostream> +#include <string> + +#pragma auto_inline(on) + +// Here's a sample Syntax 1 "Hello world"... + +auto main() -> int +{ + auto s = std::string{"world\n"}; + std::cout << "Hello " << s; +} |
