// RUN: %swift %s -verify -debugger-support -parse
//
// This test is to make sure the parser allows imports in other than
// top-level code when debugger support is on.  The test only runs
// the parse phase because the debugger will remove the import decl's
// after parse, and the rest of the toolchain is not required to handle
// them without asserting (and in fact doesn't.)

// <rdar://problem/19422917> test/Parse/debugger_parse_only.swift is XFAIL'ed and it regressed
// XFAIL: *

func imports_allowed () {
    import Swift
}

// RUN: %swift %s -verify -debugger-support -parse
// This test is to make sure the parser allows imports in other than
// top-level code when debugger support is on.  The test only runs
// the parse phase because the debugger will remove the import decl's
// after parse, and the rest of the toolchain is not required to handle
// them without asserting (and in fact doesn't.)

// XFAIL: *

func imports_allowed () {
    import Swift
}

--- 
+++ 
@@ -1,10 +1,12 @@
 // RUN: %swift %s -verify -debugger-support -parse
+//
 // This test is to make sure the parser allows imports in other than
 // top-level code when debugger support is on.  The test only runs
 // the parse phase because the debugger will remove the import decl's
 // after parse, and the rest of the toolchain is not required to handle
 // them without asserting (and in fact doesn't.)
 
+// <rdar://problem/19422917> test/Parse/debugger_parse_only.swift is XFAIL'ed and it regressed
 // XFAIL: *
 
 func imports_allowed () {
Annotate why the test is XFAIL'ed

Swift SVN r24299
