Files
swift-mirror/test/Frontend/invalid-target.swift
David Farler 5dbc33f8ac Don't crash the frontend if a bad target is given
Provide a chance to emit a diagnostic instead.

rdar://problem/20931800

Swift SVN r28940
2015-05-23 00:58:05 +00:00

6 lines
321 B
Swift

// RUN: not %swift %s -target 6502-apple-ios9.0 2>&1 | FileCheck %s -check-prefix=CHECKARCH
// RUN: not %swift %s -target x86_64-apple-eyeOS 2>&1 | FileCheck %s -check-prefix=CHECKOS
// CHECKARCH: <unknown>:0: error: unsupported target architecture: '6502'
// CHECKOS: <unknown>:0: error: unsupported target OS: 'eyeOS'