Files
swift-mirror/validation-test/ClangImporter/memcmp-definitions.swift
2021-04-02 15:28:50 -07:00

13 lines
301 B
Swift

/// rdar://69876253
// REQUIRES: VENDOR=apple
// RUN: %target-build-swift %s -o %t.out
import SwiftShims
import Foundation
func foo () {
let a = UnsafeMutableRawPointer.allocate(byteCount: 4, alignment: 4)
let b = UnsafeMutableRawPointer.allocate(byteCount: 4, alignment: 4)
memcmp(a, b, 4)
}