mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is most important for -Xcc options, which shouldn't be dependent on the underlying Clang version, but it also affects things like target features that Clang knows how to compute correctly and Swift, well, doesn't. rdar://problem/17687572 Swift SVN r22448
11 lines
683 B
Swift
11 lines
683 B
Swift
// RUN: not %swift -Xcc -fake-argument -parse %s 2>&1 | FileCheck %s -check-prefix=CHECK-UNKNOWN-ARG
|
|
// CHECK-UNKNOWN-ARG: unknown argument: '-fake-argument'
|
|
|
|
// RUN: not %swift -Xcc -ivfsoverlay -Xcc %t.nonexistent -parse %s 2>&1 | FileCheck %s -check-prefix=CHECK-VFS-NONEXISTENT
|
|
// CHECK-VFS-NONEXISTENT: virtual filesystem overlay file '{{.*}}' not found
|
|
|
|
// RUN: not %swift -Xcc --version -parse %s 2>&1 | FileCheck %s -check-prefix=CHECK-DRIVER-OPTION
|
|
// CHECK-DRIVER-OPTION-DAG: LLVM version {{[0-9]+\.[0-9]+}}
|
|
// CHECK-DRIVER-OPTION-DAG: error: unable to handle compilation, expected exactly one compiler job
|
|
// CHECK-DRIVER-OPTION-DAG: error: clang importer creation failed
|