mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This converts the instances of the pattern for which we have a proper substitution in lit. This will make it easier to replace it appropriately with Windows equivalents.
15 lines
606 B
Plaintext
15 lines
606 B
Plaintext
// REQUIRES: objc_interop
|
|
// REQUIRES: OS=macosx
|
|
// RUN: %target-swift-frontend -typecheck -swift-version 3 %s
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -c -update-code -disable-migrator-fixits -primary-file %s -emit-migrated-file-path %t/nsopengl_openglversion.swift.result -o /dev/null
|
|
// RUN: diff -u %S/nsopengl_openglversion.swift.expected %t/nsopengl_openglversion.swift.result
|
|
// RUN: %target-swift-frontend -typecheck -swift-version 4 %t/nsopengl_openglversion.swift.result
|
|
|
|
import AppKit
|
|
|
|
var major = GLint(0)
|
|
var minor = GLint(0)
|
|
|
|
(major, minor) = NSOpenGLContext.openGLVersion
|