Skip to content

Update regression tests for apple-clang-14 (23W33) #600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hello
2022
hello-ish
2022-ish
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
mixed-captures-in-expressions-and-postconditions.cpp2:12:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(vec, callback);
~~~~~~~~~~~~~^
mixed-captures-in-expressions-and-postconditions.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(std::move(vec), std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's cool!
These errors are present on macos-latest GitHub runners (see here under "Run regression tests - Linux and macOS version").
I am guessing this is thanks to some sort of update? What kind of update is necessary? Is it just Xcode or something more complicated? The change to clang-version.output seems to suggest a full OS version bump but maybe I'm mistaken.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess. See #262 (comment).

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hello
2022
hello-ish
2022-ish
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
mixed-function-expression-and-std-ranges-for-each-with-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each
~~~~~~~~~~~~~^
mixed-function-expression-and-std-ranges-for-each-with-capture.cpp2:18:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hello
2022
hello-ish
2022-ish
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
mixed-function-expression-and-std-ranges-for-each.cpp2:13:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each
~~~~~~~~~~~~~^
mixed-function-expression-and-std-ranges-for-each.cpp2:17:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

hello

2023
hello-ish
2023-ish
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
mixed-function-expression-with-pointer-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(view, [_0 = (&y)](auto const& x) -> void{
~~~~~~~~~~~~~^
mixed-function-expression-with-pointer-capture.cpp2:19:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

hello

2022
hello-ish
2022-ish
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
mixed-function-expression-with-repeated-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each
~~~~~~~~~~~~~^
mixed-function-expression-with-repeated-capture.cpp2:18:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each(view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(out this, that)
(out this, that)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
false
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
args.argc is 1, and args.argv[0] is ./test.exe
args.argc is 1
args.argv[0] is ./test.exe
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
42
43
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ myclass: explicit from string
myclass: default
data: 504, more: 3.141590
myclass: from int and string
data: 77, more: hair plugh
data: 77, more: hair1 plugh
x's state before assignments: data: 1, more: 504
myclass: implicit from int
data: 84, more: 504
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
less more less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
less less less