blob: fbdfdc810185e2707a7093389e94dbfb7299a046 [file] [log] [blame]
// RUN: %target-parse-verify-swift
@_silgen_name("foo") // expected-note {{attribute already specified here}}
@_silgen_name("bar") // expected-error {{duplicate attribute}}
func duplicateAsmName() {}
// Test parser recovery by having something that
// should parse fine.
func somethingThatShouldParseFine() {}
func func_with_nested__silgen_name() {
@_silgen_name("exit") // expected-error {{attribute '_silgen_name' can only be used in a non-local scope}}
func exit(code : UInt32) -> Void
exit(0)
}