diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-09 21:47:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-09 21:47:33 +0100 |
| commit | 9cef856478cebe4bfe00e1d39c9e2d49015dd0e4 (patch) | |
| tree | f04c6b6b1156057748c7044a766120485c45c885 /64x0/cc2/regression-tests/mixed-function-expression-with-pointer-capture.cpp2 | |
| parent | a8a55bc93e06cd8f75f7d397c013f7a312ea29a4 (diff) | |
MP-UX/hCore Assembler for 64x0, Release I.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to '64x0/cc2/regression-tests/mixed-function-expression-with-pointer-capture.cpp2')
| -rw-r--r-- | 64x0/cc2/regression-tests/mixed-function-expression-with-pointer-capture.cpp2 | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/64x0/cc2/regression-tests/mixed-function-expression-with-pointer-capture.cpp2 b/64x0/cc2/regression-tests/mixed-function-expression-with-pointer-capture.cpp2 deleted file mode 100644 index 3d72d7a..0000000 --- a/64x0/cc2/regression-tests/mixed-function-expression-with-pointer-capture.cpp2 +++ /dev/null @@ -1,22 +0,0 @@ -#include <vector> -#include <ranges> -#include <string> -#include <span> -#include <algorithm> -#include <iostream> - -main: () -> int = { - vec: std::vector<std::string> - = ("hello", "2023"); - - y: std::string = "\n"; - std::ranges::for_each( vec, :(x) = - std::cout << y&$*.c_str() << x << y&$* - ); - - callback := :(inout x) = x += "-ish"; - std::ranges::for_each( vec, callback ); - - for vec do (str) - std::cout << str << "\n"; -} |
