Skip to content

Commit

Permalink
Refresh test results, and remove test case that depended on C++23
Browse files Browse the repository at this point in the history
Right now the regression tests target the minimum supported compilers, so there's no easy way to write regression tests that depend on post-C++20 features... that's something that can be added in the future, perhaps with `-latest` or similar tags in the test names
  • Loading branch information
hsutter committed Jul 24, 2023
1 parent e99aded commit 76f6d52
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 62 deletions.
10 changes: 0 additions & 10 deletions regression-tests/pure2-bugfix-for-empty-index.cpp2

This file was deleted.

Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pure2-bugfix-for-variable-template.cpp
42 changes: 0 additions & 42 deletions regression-tests/test-results/pure2-bugfix-for-empty-index.cpp

This file was deleted.

This file was deleted.

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.2.1 Build 8723:1124
cppfront compiler v0.2.1 Build 8724:0846
Copyright(c) Herb Sutter All rights reserved

SPDX-License-Identifier: CC-BY-NC-ND-4.0
Expand Down
2 changes: 1 addition & 1 deletion source/build.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"8723:1124"
"8724:0846"
12 changes: 6 additions & 6 deletions source/parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -4128,14 +4128,14 @@ class parser
{
auto op = curr().to_string(true);
auto msg = "postfix unary " + op;
if (curr().type() == lexeme::Multiply ) { msg += " (dereference)" ; }
else if (curr().type() == lexeme::Ampersand) { msg += " (address-of)" ; }
else if (curr().type() == lexeme::Tilde ) { msg += " (unary bit-complement)"; }
if (curr().type() == lexeme::Multiply ) { msg += " (dereference)" ; }
else if (curr().type() == lexeme::Ampersand) { msg += " (address-of)" ; }
else if (curr().type() == lexeme::Tilde ) { msg += " (unary bit-complement)" ; }
msg += " cannot be immediately followed by a (, identifier, or literal - add whitespace before "
+ op + " here if you meant binary " + op;
if (curr().type() == lexeme::Multiply ) { msg += " (multiplication)" ; }
else if (curr().type() == lexeme::Ampersand) { msg += " (bitwise and)" ; }
else if (curr().type() == lexeme::Tilde ) { msg += " (binarybit-complement)"; }
if (curr().type() == lexeme::Multiply ) { msg += " (multiplication)" ; }
else if (curr().type() == lexeme::Ampersand) { msg += " (bitwise and)" ; }
else if (curr().type() == lexeme::Tilde ) { msg += " (binary bit-complement)"; }

error(msg, false);
break;
Expand Down

0 comments on commit 76f6d52

Please sign in to comment.