Skip to content

Commit 76f6d52

Browse files
committed
Refresh test results, and remove test case that depended on C++23
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
1 parent e99aded commit 76f6d52

10 files changed

+9
-62
lines changed

regression-tests/pure2-bugfix-for-empty-index.cpp2

Lines changed: 0 additions & 10 deletions
This file was deleted.

regression-tests/test-results/clang-12/pure2-bugfix-for-variable-template.cpp.output

Whitespace-only changes.

regression-tests/test-results/msvc-2022/pure2-bugfix-for-variable-template.cpp.execution

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pure2-bugfix-for-variable-template.cpp

regression-tests/test-results/pure2-bugfix-for-empty-index.cpp

Lines changed: 0 additions & 42 deletions
This file was deleted.

regression-tests/test-results/pure2-bugfix-for-empty-index.cpp2.output

Lines changed: 0 additions & 2 deletions
This file was deleted.

regression-tests/test-results/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler v0.2.1 Build 8723:1124
2+
cppfront compiler v0.2.1 Build 8724:0846
33
Copyright(c) Herb Sutter All rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/build.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"8723:1124"
1+
"8724:0846"

source/parse.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4128,14 +4128,14 @@ class parser
41284128
{
41294129
auto op = curr().to_string(true);
41304130
auto msg = "postfix unary " + op;
4131-
if (curr().type() == lexeme::Multiply ) { msg += " (dereference)" ; }
4132-
else if (curr().type() == lexeme::Ampersand) { msg += " (address-of)" ; }
4133-
else if (curr().type() == lexeme::Tilde ) { msg += " (unary bit-complement)"; }
4131+
if (curr().type() == lexeme::Multiply ) { msg += " (dereference)" ; }
4132+
else if (curr().type() == lexeme::Ampersand) { msg += " (address-of)" ; }
4133+
else if (curr().type() == lexeme::Tilde ) { msg += " (unary bit-complement)" ; }
41344134
msg += " cannot be immediately followed by a (, identifier, or literal - add whitespace before "
41354135
+ op + " here if you meant binary " + op;
4136-
if (curr().type() == lexeme::Multiply ) { msg += " (multiplication)" ; }
4137-
else if (curr().type() == lexeme::Ampersand) { msg += " (bitwise and)" ; }
4138-
else if (curr().type() == lexeme::Tilde ) { msg += " (binarybit-complement)"; }
4136+
if (curr().type() == lexeme::Multiply ) { msg += " (multiplication)" ; }
4137+
else if (curr().type() == lexeme::Ampersand) { msg += " (bitwise and)" ; }
4138+
else if (curr().type() == lexeme::Tilde ) { msg += " (binary bit-complement)"; }
41394139

41404140
error(msg, false);
41414141
break;

0 commit comments

Comments
 (0)