Files
swift-mirror/test/APINotes/basic.swift
Doug Gregor 88d73faba8 [API Notes] Test use of API notes to change the Swift name of an entity.
*Note*: requires Clang update, which adds support for SwiftName.
2016-02-20 22:03:38 -08:00

11 lines
318 B
Swift

// RUN: %target-parse-verify-swift -I %S/Inputs/custom-modules
import APINotesTest
func testSwiftName() {
moveTo(x: 0, y: 0, z: 0)
moveTo(0, 0, 0) // expected-error{{missing argument labels 'x:y:z:' in call}}
_ = global
_ = ANTGlobalValue // expected-error{{use of unresolved identifier 'ANTGlobalValue'}}
}