mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This wasn't a strict weak ordering, and it turns out violating that is undefined behavior which can result in buffer overruns.
8 lines
736 B
Swift
8 lines
736 B
Swift
// {"kind":"complete","signature":"void std::__1::__introsort<std::__1::_ClassicAlgPolicy, printCodeCompletionLookedupTypeNames(llvm::ArrayRef<swift::NullTerminatedStringRef>, llvm::raw_ostream&)::$_0&, swift::NullTerminatedStringRef*, false>(swift::NullTerminatedStringRef*, swift::NullTerminatedStringRef*, printCodeCompletionLookedupTypeNames(llvm::ArrayRef<swift::NullTerminatedStringRef>, llvm::raw_ostream&)::$_0&, std::__1::iterator_traits<swift::NullTerminatedStringRef*>::difference_type, bool)"}
|
|
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
|
|
struct a<each b: Collection
|
|
{
|
|
c: (repeat each b.Index
|
|
func == {
|
|
repeat each d == (each c)#^^#
|