mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
See <rdar://problem/24060338> Identify problems with textual SIL and fix them
This was never working, but does seem to have recently been fixed on OSX.
It's still failing on Linux:
SIL verification failed: vtable entry for #_AnySequenceBox._prefix!1 must be ABI-compatible
Different conventions for parameter 0
@convention(method) <τ_0_0> (Int, @guaranteed _AnySequenceBox<τ_0_0>) -> @owned _AnySequenceBox<τ_0_0>
@convention(method) <τ_0_0> (@owned @callee_owned (@in τ_0_0) -> (Bool, @error Error), @guaranteed _AnySequenceBox<τ_0_0>) -> (@owned _AnySequenceBox<τ_0_0>, @error Error)
In function:
24 lines
978 B
Bash
Executable File
24 lines
978 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
process_count=17
|
|
process_id_max=$((process_count - 1))
|
|
|
|
for id in $(seq 0 $process_id_max); do
|
|
|
|
cat > parse_stdlib_$id.sil <<__EOF__
|
|
//// Automatically Generated From validation-test/SIL/Inputs/gen_parse_stdlib_tests.sh
|
|
////// Do Not Edit Directly!
|
|
|
|
// Make sure that we can parse the stdlib.sil deserialized from Swift.swiftmodule.
|
|
|
|
// RUN: rm -f %t.*
|
|
// FIXME: reenable -enable-sil-verify-all in the following two RUN lines.
|
|
// See <rdar://problem/24060338> Identify problems with textual SIL and fix them
|
|
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all=false -sil-disable-ast-dump %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
|
|
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all=false %t.sil -ast-verifier-process-count=$process_count -ast-verifier-process-id=$id > /dev/null
|
|
// REQUIRES: long_test
|
|
// REQUIRES: nonexecutable_test
|
|
__EOF__
|
|
|
|
done
|