Add a test case to validate that 'type lookup' picks Swift vs. ObjC properly in the REPL
diff --git a/packages/Python/lldbsuite/test/repl/type_lookup/TestREPLTypeLookup.py b/packages/Python/lldbsuite/test/repl/type_lookup/TestREPLTypeLookup.py
new file mode 100644
index 0000000..6cdb4ce
--- /dev/null
+++ b/packages/Python/lldbsuite/test/repl/type_lookup/TestREPLTypeLookup.py
@@ -0,0 +1,32 @@
+# TestREPLTypeLookup.py
+#
+# This source file is part of the Swift.org open source project
+#
+# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
+# Licensed under Apache License v2.0 with Runtime Library Exception
+#
+# See http://swift.org/LICENSE.txt for license information
+# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
+#
+# ------------------------------------------------------------------------------
+"""Test that type lookup chooses the right language"""
+
+import lldbsuite.test.lldbrepl as lldbrepl
+import lldbsuite.test.decorators as decorators
+
+class REPLTypeLookupTestCase(lldbrepl.REPLTest):
+
+ mydir = lldbrepl.REPLTest.compute_mydir(__file__)
+
+ @decorators.swiftTest
+ @decorators.skipUnlessDarwin
+ @decorators.no_debug_info_test
+ def doTest(self):
+ self.command(
+ ':type lookup NSArchiver',
+ patterns=['@interface NSArchiver']) # no Swift info, ObjC
+ self.command('import Foundation')
+ self.command(
+ ':type lookup NSArchiver',
+ patterns=['class NSArchiver']) # Swift info, no ObjC
+
\ No newline at end of file