mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
5 lines
314 B
Swift
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' |