mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Hopefully fixes some of the weird failures we're seeing in rdar://problem/42247881, though I'm not sure how it would be responsible for some of them.
14 lines
602 B
Swift
14 lines
602 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: echo 'print("Hello, World!")' >%t/main.swift
|
|
// RUN: touch %t/bridgingHeader.h
|
|
//
|
|
// Make sure the proper warning is emitted:
|
|
//
|
|
// RUN: %swiftc_driver -enable-batch-mode -num-threads 2 %t/main.swift -import-objc-header %t/bridgingHeader.h -### 2>&1 | %FileCheck %s
|
|
//
|
|
// CHECK: ignoring -num-threads argument; cannot multithread batch mode
|
|
//
|
|
// Make sure that it actually works. (The link step fails if -num-threads is not ignored.)
|
|
//
|
|
// RUN: %swiftc_driver -enable-batch-mode -num-threads 2 -c %t/main.swift -import-objc-header %t/bridgingHeader.h -o %t/main.o
|