|
| 1 | +// Welcome, Build Wrangler! |
| 2 | +// |
| 3 | +// A failure in this test indicates that there is a potential ABI breaking |
| 4 | +// change in the Standard Library. If you observe a failure, please reach out to |
| 5 | +// the Standard Library team directly to make sure we resolve this quickly! |
| 6 | +// |
| 7 | +// Instead of XFAILing this test, please consider extending the list of expected |
| 8 | +// changes at the bottom. (In addition to ignoring the current set of ABI breaks, |
| 9 | +// XFAILing this test also silences any future ABI breaks that may land on this |
| 10 | +// branch, which isn't ideal.) |
| 11 | +// |
| 12 | +// You can find a diff of what needs to be added in the output of the failed |
| 13 | +// test run. The order of lines doesn't matter, and you can also include |
| 14 | +// comments to refer to any bugs you filed. |
| 15 | +// |
| 16 | +// Thanks! -- Your friendly stdlib engineers |
| 17 | + |
| 18 | +// REQUIRES: OS=macosx |
| 19 | +// REQUIRES: swift_stdlib_asserts |
| 20 | +// RUN: %empty-directory(%t.tmp) |
| 21 | +// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk |
| 22 | +// RUN: %api-digester -diagnose-sdk -module Swift -o %t.tmp/changes.txt -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -abi -avoid-location |
| 23 | +// RUN: %clang -E -P -x c %S/stability-stdlib-abi-without-asserts.test -o - > %t.tmp/stability-stdlib-abi.swift.expected |
| 24 | +// RUN: %clang -E -P -x c %S/stability-stdlib-abi-with-asserts.test -o - >> %t.tmp/stability-stdlib-abi.swift.expected |
| 25 | +// RUN: %clang -E -P -x c %t.tmp/stability-stdlib-abi.swift.expected -o - | sed '/^\s*$/d' | sort > %t.tmp/stability-stdlib-abi.swift.expected.sorted |
| 26 | +// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' | sort > %t.tmp/changes.txt.tmp |
| 27 | +// RUN: diff -u %t.tmp/stability-stdlib-abi.swift.expected.sorted %t.tmp/changes.txt.tmp |
| 28 | + |
| 29 | +// The digester can incorrectly register a generic signature change when |
| 30 | +// declarations are shuffled. rdar://problem/46618883 |
| 31 | +// UNSUPPORTED: swift_evolve |
| 32 | + |
| 33 | +Func _collectReferencesInsideObject(_:) is a new API without @available attribute |
| 34 | +Func _loadDestroyTLSCounter() is a new API without @available attribute |
| 35 | +Func _measureRuntimeFunctionCountersDiffs(objects:_:) is a new API without @available attribute |
| 36 | +Protocol _RuntimeFunctionCountersStats is a new API without @available attribute |
| 37 | +Struct _GlobalRuntimeFunctionCountersState is a new API without @available attribute |
| 38 | +Struct _ObjectRuntimeFunctionCountersState is a new API without @available attribute |
| 39 | +Struct _RuntimeFunctionCounters is a new API without @available attribute |
| 40 | +Func _swift_isImmutableCOWBuffer(_:) is a new API without @available attribute |
| 41 | +Func _swift_setImmutableCOWBuffer(_:_:) is a new API without @available attribute |
0 commit comments