Files
swift-mirror/test/SILGen/effectsattr.swift
Michael Gottesman 8a9d9ab6cd [silgen] Update a group of SILGen tests to run with -enable-sil-ownership.
The key thing here is that these do not depend on the standard library, so I can
update them now.

rdar://31880847
2017-07-10 19:49:56 -07:00

13 lines
364 B
Swift

// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -emit-silgen %s | %FileCheck %s
//CHECK: [readonly] @func1
@effects(readonly) @_silgen_name("func1") func func1() { }
//CHECK: [readnone] @func2
@effects(readnone) @_silgen_name("func2") func func2() { }
//CHECK: [readwrite] @func3
@effects(readwrite) @_silgen_name("func3") func func3() { }