[test] ignore deprecations

Ignore some deprecation warnings associated with the deployment target
bump.
This commit is contained in:
Ben Langmuir
2024-08-19 13:08:03 -07:00
parent ad82d86041
commit dc5e6d88c2
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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)
}