// This test specifically exercises the interpreter's top-level error handler.
// RUN: not --crash %target-jit-run %s
// REQUIRES: swift_interpreter

// rdar://20809122
enum Error : ErrorType { case Foo }
throw Error.Foo

// This test specifically exercises the interpreter's top-level error handler.
// RUN: not --crash %target-jit-run %s 2>&1 | FileCheck %s
// REQUIRES: swift_interpreter

// rdar://20809122
// CHECK: Error raised at top level: return_from_main.Error.Foo
enum Error : ErrorType { case Foo }
throw Error.Foo

Test that message throwing from main identifies error.
Test that message throwing from main identifies error.

Swift SVN r29402
