Skip to content

Commit ba414f5

Browse files
committed
1342 Updated regression tests
1 parent 906bd84 commit ba414f5

File tree

14 files changed

+111
-22
lines changed

14 files changed

+111
-22
lines changed

regression-tests/pure2-enum.cpp2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ file_attributes: @flag_enum<u8> type = {
2525
cached_and_current := cached | current;
2626
}
2727

28+
// #1342
29+
foo : @enum type = {
30+
s;
31+
}
32+
2833
main: () = {
2934
j := janus::past;
3035
j.flip();
@@ -132,4 +137,7 @@ main: () = {
132137

133138
f_from_string = file_attributes::from_code("(file_attributes::cached | file_attributes::obsolete)");
134139
std::cout << "f_from_string is " << f_from_string.to_string() << "\n";
140+
141+
a := foo::s;
142+
std::cout << "a.to_string() is (a.to_string())$\n";
135143
}

regression-tests/test-results/apple-clang-14-c++2b/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/apple-clang-15-c++2b/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/clang-12-c++20/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/clang-15-c++20-libcpp/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/clang-15-c++20/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/clang-18-c++20/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/clang-18-c++23-libcpp/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/gcc-10-c++20/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

regression-tests/test-results/gcc-13-c++2b/pure2-enum.cpp.execution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ f_from_string is (cached, current, cached_and_current)
3434
f_from_string is (current, obsolete)
3535
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
3636
f_from_string is (cached, obsolete)
37+
a.to_string() is s

0 commit comments

Comments
 (0)