<commit_before>// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-move-only) | %FileCheck %s

// REQUIRES: executable_test

@_moveOnly
public struct BufferView<T> {
    var ptr: UnsafeMutableBufferPointer<T>

    deinit {}
}

extension BufferView : Sequence {
    public typealias Iterator = UnsafeMutableBufferPointer<T>.Iterator
    public typealias Element = UnsafeMutableBufferPointer<T>.Element

    public func makeIterator() -> Self.Iterator {
        return ptr.makeIterator()
    }
}<commit_msg>[move-only] Turn off the buffer view test for now when optimizations are enabled.<commit_after>// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-move-only) | %FileCheck %s

// REQUIRES: executable_test
// REQUIRES: swift_test_mode_optimize_none

// Until we get support for emitting value witnesses for deinits, do not run
// this with optimizations.

@_moveOnly
public struct BufferView<T> {
    var ptr: UnsafeMutableBufferPointer<T>

    deinit {}
}

extension BufferView : Sequence {
    public typealias Iterator = UnsafeMutableBufferPointer<T>.Iterator
    public typealias Element = UnsafeMutableBufferPointer<T>.Element

    public func makeIterator() -> Self.Iterator {
        return ptr.makeIterator()
    }
}
{'fraction_non_alphanumeric': 0.0965682362330407, 'fraction_numerical': 0.0, 'mean_word_length': 4.181818181818182, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2639211', 'n_tokens_mistral': 382, 'n_tokens_neox': 358, 'n_words': 96}