Skip to content

Commit 9b05898

Browse files
committed
2 parents 56bb936 + fec62f3 commit 9b05898

File tree

86 files changed

+235
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+235
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Apple clang version 14.0.0 (clang-1400.0.29.202)
2+
Target: arm64-apple-darwin22.1.0
3+
Thread model: posix
4+
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world

regression-tests/test-results/apple-clang-14/mixed-allcpp1-hello.cpp.output

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Bounds safety violation: out of bounds access attempt detected
2+
libc++abi: terminating

regression-tests/test-results/apple-clang-14/mixed-bounds-check.cpp.output

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1
2+
44
3+
45
4+
46
5+
5

regression-tests/test-results/apple-clang-14/mixed-bounds-safety-with-assert-2.cpp.output

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Bounds safety violation
2+
libc++abi: terminating

regression-tests/test-results/apple-clang-14/mixed-bounds-safety-with-assert.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mixed-captures-in-expressions-and-postconditions.cpp2:12:18: error: no member named 'for_each' in namespace 'std::ranges'
2+
std::ranges::for_each( vec, callback );
3+
~~~~~~~~~~~~~^
4+
mixed-captures-in-expressions-and-postconditions.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
5+
std::ranges::for_each( std::move(vec), std::move(callback));
6+
~~~~~~~~~~~~~^
7+
2 errors generated.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+X 1
2+
+X 2
3+
copy X 1
4+
move X 2
5+
+X 3
6+
+X 4
7+
move X 3
8+
move X 4

regression-tests/test-results/apple-clang-14/mixed-forwarding.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hello-ish maybe
2+
2022-ish maybe

regression-tests/test-results/apple-clang-14/mixed-function-expression-and-std-for-each.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mixed-function-expression-and-std-ranges-for-each-with-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
2+
std::ranges::for_each
3+
~~~~~~~~~~~~~^
4+
mixed-function-expression-and-std-ranges-for-each-with-capture.cpp2:18:18: error: no member named 'for_each' in namespace 'std::ranges'
5+
std::ranges::for_each( view, std::move(callback));
6+
~~~~~~~~~~~~~^
7+
2 errors generated.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mixed-function-expression-and-std-ranges-for-each.cpp2:13:18: error: no member named 'for_each' in namespace 'std::ranges'
2+
std::ranges::for_each
3+
~~~~~~~~~~~~~^
4+
mixed-function-expression-and-std-ranges-for-each.cpp2:17:18: error: no member named 'for_each' in namespace 'std::ranges'
5+
std::ranges::for_each( view, std::move(callback));
6+
~~~~~~~~~~~~~^
7+
2 errors generated.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mixed-function-expression-with-pointer-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
2+
std::ranges::for_each( view, [_0 = (&y)](auto const& x){
3+
~~~~~~~~~~~~~^
4+
mixed-function-expression-with-pointer-capture.cpp2:19:18: error: no member named 'for_each' in namespace 'std::ranges'
5+
std::ranges::for_each( view, std::move(callback));
6+
~~~~~~~~~~~~~^
7+
2 errors generated.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mixed-function-expression-with-repeated-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
2+
std::ranges::for_each
3+
~~~~~~~~~~~~~^
4+
mixed-function-expression-with-repeated-capture.cpp2:18:18: error: no member named 'for_each' in namespace 'std::ranges'
5+
std::ranges::for_each( view, std::move(callback));
6+
~~~~~~~~~~~~~^
7+
2 errors generated.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello [world]

regression-tests/test-results/apple-clang-14/mixed-hello.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Contract violation: fill: value must contain at least count elements
2+
libc++abi: terminating

regression-tests/test-results/apple-clang-14/mixed-initialization-safety-3-contract-violation.cpp.output

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
>> [xyzzy]

regression-tests/test-results/apple-clang-14/mixed-initialization-safety-3.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-inspect-with-typeof-of-template-arg-list.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-inspect-with-typeof-of-template-arg-list.cpp.output

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
>> hello
2+
>> big
3+
>> world
4+
** ** **
5+
>> [hello]
6+
>> [big]
7+
>> [world]

regression-tests/test-results/apple-clang-14/mixed-intro-example-three-loops.cpp.output

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1 42
2+
2 84
3+
3 168
4+
4 336
5+
5 672

regression-tests/test-results/apple-clang-14/mixed-intro-for-with-counter-include-last.cpp.output

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sending error to my framework... [dynamic null dereference attempt detected]

regression-tests/test-results/apple-clang-14/mixed-lifetime-safety-and-null-contracts.cpp.output

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
>> 42

regression-tests/test-results/apple-clang-14/mixed-lifetime-safety-pointer-init-4.cpp.output

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
a is 10
2+
b is xyzzy

regression-tests/test-results/apple-clang-14/mixed-multiple-return-values.cpp.output

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
enter main
2+
enter f00
3+
enter f01
4+
+X 1
5+
exit f01
6+
-X 1
7+
exit f00
8+
9+
enter f10
10+
enter f11
11+
enter f12
12+
enter f13
13+
enter f14
14+
+X 2
15+
exit f14
16+
exit f13
17+
exit f12
18+
-X 2
19+
exit f11
20+
exit f10
21+
exit main

regression-tests/test-results/apple-clang-14/mixed-out-destruction.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-parameter-passing-with-forward.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-parameter-passing-with-forward.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-parameter-passing.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-parameter-passing.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-postexpression-with-capture.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-postexpression-with-capture.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-postfix-expression-custom-formatting.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/mixed-postfix-expression-custom-formatting.cpp.output

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
a = 2, b = (empty)
2+
a^2 + b = 46
3+
sv = my string_view
4+
osv = (empty)
5+
osv = string literal bound to optional string_view
6+
var = (empty)
7+
var = abracadabra
8+
var = 2.718280
9+
mypair = (12, 3.400000)
10+
tup1 = (12)
11+
tup2 = (12, 3.400000)
12+
tup3 = (12, 3.400000, 456)
13+
p = (first, (empty))
14+
t = (3.140000, (empty), (empty))
15+
vv = 0
16+
vv = (1, 2.300000)
17+
custom = (customize me - no cpp2::to_string overload exists for this type)

regression-tests/test-results/apple-clang-14/mixed-string-interpolation.cpp.output

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

regression-tests/test-results/apple-clang-14/mixed-test-parens.cpp.output

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
1.1 is int? false
2+
1 is int? true
3+
4+
s* is Shape? true
5+
s* is Circle? true
6+
s* is Square? false

regression-tests/test-results/apple-clang-14/mixed-type-safety-1.cpp.output

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rain
2+
rain

regression-tests/test-results/apple-clang-14/mixed-ufcs-multiple-template-arguments.cpp.output

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
>> decorated
2+
>> hello
3+
>> world

regression-tests/test-results/apple-clang-14/pure2-bounds-safety-span.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/pure2-bugfix-for-name-lookup-and-value-decoration.cpp.execution

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pure2-bugfix-for-name-lookup-and-value-decoration.cpp2:8:18: warning: expression result unused [-Wunused-value]
2+
std::move(v).i;
3+
~~~~~~~~~~~~ ^
4+
1 warning generated.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello [world]

regression-tests/test-results/apple-clang-14/pure2-hello.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
double value is not an int or string
2+
variant<int, int, double> value is not an int or string
3+
any value is "xyzzy"
4+
optional<int> value is not an int or string
5+
int value is integer 42
6+
variant<int, int, double> value is integer 1
7+
any value is integer 2
8+
optional<int> value is integer 3

regression-tests/test-results/apple-clang-14/pure2-inspect-expression-in-generic-function-multiple-types.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syzygy value is not an int
2+
1 value is 1
3+
1.100000 value is not an int

regression-tests/test-results/apple-clang-14/pure2-inspect-expression-with-as-in-generic-function.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
All these cases satisfy "matches std::string"
3+
4+
variant<int, int, string>
5+
... matches std::string
6+
7+
string
8+
... matches std::string
9+
10+
optional<string>
11+
... matches std::string

regression-tests/test-results/apple-clang-14/pure2-inspect-fallback-with-variant-any-optional.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
All these cases satisfy "VOYDE AND EMPTIE"
3+
4+
unique_ptr
5+
... VOYDE AND EMPTIE
6+
7+
vector<int>::iterator
8+
... VOYDE AND EMPTIE
9+
10+
variant<monostate, int, int, string>
11+
... VOYDE AND EMPTIE
12+
13+
any
14+
... VOYDE AND EMPTIE
15+
16+
optional<string>
17+
... VOYDE AND EMPTIE

regression-tests/test-results/apple-clang-14/pure2-inspect-generic-void-empty-with-variant-any-optional.cpp.output

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
g0g0g
2+
0g0g
3+
0g0
4+
00
5+
"0"
6+
"0
7+
"
8+
9+
pl(ug$h
10+
0pl(ug$h

regression-tests/test-results/apple-clang-14/pure2-interpolation.cpp.output

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
>> [hello] - length 7
2+
>> [2022] - length 6

regression-tests/test-results/apple-clang-14/pure2-intro-example-hello-2022.cpp.output

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
>> hello
2+
>> big
3+
>> world
4+
** ** **
5+
>> [hello]
6+
>> [big]
7+
>> [world]

regression-tests/test-results/apple-clang-14/pure2-intro-example-three-loops.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
84

regression-tests/test-results/apple-clang-14/pure2-look-up-parameter-across-unnamed-function.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/pure2-stdio-with-raii.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/pure2-stdio-with-raii.cpp.output

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/pure2-stdio.cpp.execution

Whitespace-only changes.

regression-tests/test-results/apple-clang-14/pure2-stdio.cpp.output

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
double is int? false
2+
variant<int, int, double> is int? false
3+
any is int? false
4+
optional<int> is int? false
5+
6+
int is int? true
7+
variant<int, int, double> is int? true
8+
any is int? true
9+
optional<int> is int? true

regression-tests/test-results/apple-clang-14/pure2-type-safety-1.cpp.output

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
double value is not an int
2+
variant<int, double, int> value is not an int
3+
any value is not an int
4+
optional<int> value is not an int
5+
int value is 42
6+
variant<int, double, int> value is 1
7+
any value is 2
8+
optional<int> value is 3

regression-tests/test-results/apple-clang-14/pure2-type-safety-2-with-inspect-expression.cpp.output

Whitespace-only changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is intended to be run in the /test-results/apple-clang-14 subdirectory
2+
# in a macOS shell with clang++ installed
3+
#
4+
cp ../*.cpp .
5+
rm -f *.output *.execution
6+
count=0
7+
exe_count=0
8+
clang++ --version > clang-version.output 2>&1
9+
for f in *.cpp
10+
do
11+
printf "Starting apple clang++ %s\n" "$f"
12+
clang++ -I../../../include -std=c++20 -pthread -o test.exe $f > $f.output 2>&1
13+
rm -f $f
14+
let count=count+1
15+
if test -f "test.exe"; then
16+
let exe_count=exe_count+1
17+
printf " Starting executable\n"
18+
./test.exe > $f.execution 2>&1
19+
rm -f test.exe
20+
fi
21+
done
22+
rm -f *.obj *.exp *.lib
23+
printf "\nDone: %s .cpp tests compiled\n" "$count"
24+
printf "\n %s .cpp executables generated and run\n" "$exe_count"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello Fred with UFCS!

0 commit comments

Comments
 (0)