mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] ignore deprecations
Ignore some deprecation warnings associated with the deployment target bump.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
// REQUIRES: OS=macosx
|
||||
|
||||
import OpenGL.GL3
|
||||
_ = glGetString
|
||||
_ = OpenGL.glGetString
|
||||
_ = glGetString // expected-warning * {{'glGetString' was deprecated}}
|
||||
_ = OpenGL.glGetString // expected-warning * {{'glGetString' was deprecated}}
|
||||
_ = GL_COLOR_BUFFER_BIT
|
||||
_ = OpenGL.GL_COLOR_BUFFER_BIT
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ func test_NSCoder_decodeTopLevelObjectOfClasses_forKey_error(
|
||||
|
||||
|
||||
func test_NSKeyedUnarchiver_unarchiveObjectWithData(_ data: NSData) {
|
||||
var r = NSKeyedUnarchiver.unarchiveObject(with: data as Data)
|
||||
var r = NSKeyedUnarchiver.unarchiveObject(with: data as Data) // expected-warning * {{'unarchiveObject(with:)' was deprecated}}
|
||||
expectType(Optional<Any>.self, &r)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user