Skip to content

[ADD] Add test-results for apple-clang-14 #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello world
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Bounds safety violation: out of bounds access attempt detected
libc++abi: terminating
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1
44
45
46
5
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Bounds safety violation
libc++abi: terminating
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mixed-captures-in-expressions-and-postconditions.cpp2:12:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( vec, callback );
~~~~~~~~~~~~~^
mixed-captures-in-expressions-and-postconditions.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( std::move(vec), std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+X 1
+X 2
copy X 1
move X 2
+X 3
+X 4
move X 3
move X 4
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hello-ish maybe
2022-ish maybe
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mixed-function-expression-and-std-ranges-for-each-with-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each
~~~~~~~~~~~~~^
mixed-function-expression-and-std-ranges-for-each-with-capture.cpp2:18:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mixed-function-expression-and-std-ranges-for-each.cpp2:13:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each
~~~~~~~~~~~~~^
mixed-function-expression-and-std-ranges-for-each.cpp2:17:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mixed-function-expression-with-pointer-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( view, [_0 = (&y)](auto const& x){
~~~~~~~~~~~~~^
mixed-function-expression-with-pointer-capture.cpp2:19:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mixed-function-expression-with-repeated-capture.cpp2:14:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each
~~~~~~~~~~~~~^
mixed-function-expression-with-repeated-capture.cpp2:18:18: error: no member named 'for_each' in namespace 'std::ranges'
std::ranges::for_each( view, std::move(callback));
~~~~~~~~~~~~~^
2 errors generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello [world]
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Contract violation: fill: value must contain at least count elements
libc++abi: terminating
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
>> [xyzzy]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
>> hello
>> big
>> world
** ** **
>> [hello]
>> [big]
>> [world]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1 42
2 84
3 168
4 336
5 672
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sending error to my framework... [dynamic null dereference attempt detected]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
>> 42
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
a is 10
b is xyzzy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
enter main
enter f00
enter f01
+X 1
exit f01
-X 1
exit f00

enter f10
enter f11
enter f12
enter f13
enter f14
+X 2
exit f14
exit f13
exit f12
-X 2
exit f11
exit f10
exit main
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
a = 2, b = (empty)
a^2 + b = 46
sv = my string_view
osv = (empty)
osv = string literal bound to optional string_view
var = (empty)
var = abracadabra
var = 2.718280
mypair = (12, 3.400000)
tup1 = (12)
tup2 = (12, 3.400000)
tup3 = (12, 3.400000, 456)
p = (first, (empty))
t = (3.140000, (empty), (empty))
vv = 0
vv = (1, 2.300000)
custom = (customize me - no cpp2::to_string overload exists for this type)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1.1 is int? false
1 is int? true

s* is Shape? true
s* is Circle? true
s* is Square? false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rain
rain
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
>> decorated
>> hello
>> world
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pure2-bugfix-for-name-lookup-and-value-decoration.cpp2:8:18: warning: expression result unused [-Wunused-value]
std::move(v).i;
~~~~~~~~~~~~ ^
1 warning generated.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello [world]
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
double value is not an int or string
variant<int, int, double> value is not an int or string
any value is "xyzzy"
optional<int> value is not an int or string
int value is integer 42
variant<int, int, double> value is integer 1
any value is integer 2
optional<int> value is integer 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
syzygy value is not an int
1 value is 1
1.100000 value is not an int
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

All these cases satisfy "matches std::string"

variant<int, int, string>
... matches std::string

string
... matches std::string

optional<string>
... matches std::string
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

All these cases satisfy "VOYDE AND EMPTIE"

unique_ptr
... VOYDE AND EMPTIE

vector<int>::iterator
... VOYDE AND EMPTIE

variant<monostate, int, int, string>
... VOYDE AND EMPTIE

any
... VOYDE AND EMPTIE

optional<string>
... VOYDE AND EMPTIE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
g0g0g
0g0g
0g0
00
"0"
"0
"

pl(ug$h
0pl(ug$h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
>> [hello] - length 7
>> [2022] - length 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
>> hello
>> big
>> world
** ** **
>> [hello]
>> [big]
>> [world]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
84
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
double is int? false
variant<int, int, double> is int? false
any is int? false
optional<int> is int? false

int is int? true
variant<int, int, double> is int? true
any is int? true
optional<int> is int? true
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
double value is not an int
variant<int, double, int> value is not an int
any value is not an int
optional<int> value is not an int
int value is 42
variant<int, double, int> value is 1
any value is 2
optional<int> value is 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is intended to be run in the /test-results/apple-clang-14 subdirectory
# in a macOS shell with clang++ installed
#
cp ../*.cpp .
rm -f *.output *.execution
count=0
exe_count=0
clang++ --version > clang-version.output 2>&1
for f in *.cpp
do
printf "Starting apple clang++ %s\n" "$f"
clang++ -I../../../include -std=c++20 -pthread -o test.exe $f > $f.output 2>&1
rm -f $f
let count=count+1
if test -f "test.exe"; then
let exe_count=exe_count+1
printf " Starting executable\n"
./test.exe > $f.execution 2>&1
rm -f test.exe
fi
done
rm -f *.obj *.exp *.lib
printf "\nDone: %s .cpp tests compiled\n" "$count"
printf "\n %s .cpp executables generated and run\n" "$exe_count"
1 change: 1 addition & 0 deletions regression-tests/test-results/apple-clang-14/xyzzy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello Fred with UFCS!