// RUN: %target-build-swift -parse %s -Xfrontend -verify

import OpenAL.AL

let _ = alGetError
let _ = OpenAL.alGetError

let _ = alcCreateContext // expected-error{{use of unresolved identifier 'alcCreateContext'}}

#if os(OSX)
import OpenGL.GL3
let _ = glGetString
let _ = OpenGL.glGetString

import AppKit.NSPanGestureRecognizer
typealias PanRecognizer = NSPanGestureRecognizer
typealias PanRecognizer2 = AppKit.NSPanGestureRecognizer

#endif

let _ = glVertexPointer // expected-error{{use of unresolved identifier 'glVertexPointer'}}

// RUN: %target-build-swift -parse %s -Xfrontend -verify

import OpenAL.AL

let _ = alGetError
let _ = OpenAL.alGetError

let _ = alcCreateContext // expected-error{{use of unresolved identifier 'alcCreateContext'}}

#if os(iOS)
import UIKit.UIGestureRecognizerSubclass
let _: UIGestureRecognizer -> () -> Void = UIGestureRecognizer.reset

#elseif os(OSX)
import OpenGL.GL3
let _ = glGetString
let _ = OpenGL.glGetString

import AppKit.NSPanGestureRecognizer
typealias PanRecognizer = NSPanGestureRecognizer
typealias PanRecognizer2 = AppKit.NSPanGestureRecognizer

#endif

let _ = glVertexPointer // expected-error{{use of unresolved identifier 'glVertexPointer'}}

--- 
+++ 
@@ -7,11 +7,7 @@
 
 let _ = alcCreateContext // expected-error{{use of unresolved identifier 'alcCreateContext'}}
 
-#if os(iOS)
-import UIKit.UIGestureRecognizerSubclass
-let _: UIGestureRecognizer -> () -> Void = UIGestureRecognizer.reset
-
-#elseif os(OSX)
+#if os(OSX)
 import OpenGL.GL3
 let _ = glGetString
 let _ = OpenGL.glGetString
[test] Drop import of UIKit in this test; we don't want to bring in OpenGL.

This was causing the iOS build to fail.

Swift SVN r20943
