Skip to content

Commit

Permalink
Refresh test results post-merge
Browse files Browse the repository at this point in the history
Line ends and such
hsutter committed Dec 17, 2023
1 parent 8819ecd commit 696c5d4
Showing 19 changed files with 30 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
t: type = {
operator[]: (this, f) = { }
operator[]: (this, _) = { }
}

main: () -> int = {
(x := t()) { x[:() -> _ = 0]; }
(x := t()) { x[:() -> _ = 0;]; }

assert(!(:() = 0; is int));
assert(!(:() 0; is int));

return :i32 = 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pure2-bugfix-for-unbraced-function-expression.cpp2:2:34: warning: unused parameter 'f' [-Wunused-parameter]
auto t::operator[](auto const& f) const& -> void{}
^
pure2-bugfix-for-unbraced-function-expression.cpp2:9:65: warning: expression result unused [-Wunused-value]
cpp2::Default.expects(!((cpp2::is<int>([]() mutable -> void { 0; }))), "");
^
2 warnings generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12345123451234512345
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pure2-bugfix-for-unbraced-function-expression.cpp2: In instantiation of ‘void t::operator[](const auto:90&) const & [with auto:89 = main()::<lambda()>]’:
pure2-bugfix-for-unbraced-function-expression.cpp2:6:4: required from here
pure2-bugfix-for-unbraced-function-expression.cpp2:2:34: warning: unused parameter ‘f’ [-Wunused-parameter]
pure2-bugfix-for-unbraced-function-expression.cpp2: In instantiation of ‘void t::operator[](const auto:90&) const & [with auto:89 = main()::<lambda()>]’:
pure2-bugfix-for-unbraced-function-expression.cpp2:7:4: required from here
pure2-bugfix-for-unbraced-function-expression.cpp2:2:34: warning: unused parameter ‘f’ [-Wunused-parameter]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12345123451234512345
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pure2-bugfix-for-unbraced-function-expression.cpp2: In instantiation of ‘void t::operator[](const auto:100&) const & [with auto:99 = main()::<lambda()>]’:
pure2-bugfix-for-unbraced-function-expression.cpp2:6:4: required from here
pure2-bugfix-for-unbraced-function-expression.cpp2:2:34: warning: unused parameter ‘f’ [-Wunused-parameter]
pure2-bugfix-for-unbraced-function-expression.cpp2: In instantiation of ‘void t::operator[](const auto:100&) const & [with auto:99 = main()::<lambda()>]’:
pure2-bugfix-for-unbraced-function-expression.cpp2:7:4: required from here
pure2-bugfix-for-unbraced-function-expression.cpp2:2:34: warning: unused parameter ‘f’ [-Wunused-parameter]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12345123451234512345
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pure2-bugfix-for-unbraced-function-expression.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12345123451234512345
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pure2-for-loop-range-with-lambda.cpp
2 changes: 1 addition & 1 deletion regression-tests/test-results/version
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

cppfront compiler v0.3.0 Build 8C14:0739
cppfront compiler v0.3.0 Build 8C16:2054
Copyright(c) Herb Sutter All rights reserved

SPDX-License-Identifier: CC-BY-NC-ND-4.0
2 changes: 1 addition & 1 deletion source/build.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"8C14:0739"
"8C16:2054"
2 changes: 1 addition & 1 deletion source/to_cpp1.h
Original file line number Diff line number Diff line change
@@ -4533,7 +4533,7 @@ class cppfront

// "Axiom"s are for static analysis only, and are never evaluated, so just skip them
// (The only requirement for an Axiom condition is that it parses; and even that's
// easy to relax if we feel like allowing arbitrary tokens in an Axiom condition)
// easy to relax if we ever want to allow arbitrary tokens in an Axiom condition)
if (n.group && n.group->to_string() == "Axiom") {
return;
}

0 comments on commit 696c5d4

Please sign in to comment.