mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix two IRGen tests that are failing on Android armv7 and disable eight ClangImporter, C++ Interop, and SILOptimizer tests, two of which that were already failing on other 32-bit platforms.
22 lines
1.2 KiB
Swift
22 lines
1.2 KiB
Swift
// Emit the explicit module.
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %swift-frontend -emit-pcm -direct-clang-cc1-module-build -module-name script -o %t/script.pcm %S/Inputs/custom-modules/module.modulemap -Xcc %S/Inputs/custom-modules/module.modulemap -Xcc -o -Xcc %t/script.pcm -Xcc -fmodules -Xcc -triple -Xcc %target-triple -Xcc -x -Xcc objective-c -dump-clang-diagnostics 2> %t.diags.txt
|
|
|
|
// Verify some of the output of the -dump-pcm flag.
|
|
// RUN: %swift-dump-pcm %t/script.pcm | %FileCheck %s --check-prefix=CHECK-DUMP
|
|
// CHECK-DUMP: Information for module file '{{.*}}/script.pcm':
|
|
// CHECK-DUMP: Module name: script
|
|
// CHECK-DUMP: Module map file: {{.*[/\\]}}Inputs{{/|\\}}custom-modules{{/|\\}}module.modulemap
|
|
|
|
// Verify that the clang command-line used is cc1
|
|
// RUN: %FileCheck -check-prefix CHECK-CLANG -DTRIPLE=%target-triple %s < %t.diags.txt
|
|
// CHECK-CLANG: clang importer cc1 args
|
|
// CHECK-CLANG-SAME: '-o' '{{.*[/\\]}}script.pcm' '-fsyntax-only' '-x' 'objective-c' '{{.*[/\\]}}module.modulemap' '-triple' '[[TRIPLE]]'
|
|
// CHECK-CLANG-SAME: '-fmodules'
|
|
// CHECK-CLANG-NOT: clang importer driver args
|
|
|
|
// XFAIL: OS=linux-androideabi
|
|
|
|
import script
|
|
var _ : ScriptTy
|