Files
swift-mirror/test/Frontend/unknown-arguments.swift
Connor Wakamo 295b438d23 [frontend] Check for unknown arguments before attempting to handle other arguments.
Moved the check for unknown arguments ahead of any other attempts to handle arguments.
Added test/Frontend/unknown-arguments.swift, which tests the unknown argument handling of "swift_driver -frontend".

Swift SVN r11157
2013-12-12 00:23:35 +00:00

5 lines
314 B
Swift

// RUN: not %swift_driver -frontend -triple x86_64-apple-darwin10 -fake-argument -abcdef -c %s -o %t.o 2>&1 | FileCheck %s
// CHECK: <unknown>:0: error: unknown argument: '-triple'
// CHECK-NEXT: <unknown>:0: error: unknown argument: '-fake-argument'
// CHECK-NEXT: <unknown>:0: error: unknown argument: '-abcdef'