File: handle-prebuilt-module.m

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (24 lines) | stat: -rw-r--r-- 1,601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// REQUIRES: x86-registered-target
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %clang -target x86_64-apple-macos10.7 -fsyntax-only %s -o %t.o -index-store-path %t/idx1 -fmodules -fmodules-cache-path=%t/mcp -I %S/Inputs/module -Rindex-store 2> %t.err1
// RUN: %clang -target x86_64-apple-macos10.7 -fsyntax-only %s -o %t.o -index-store-path %t/idx2 -fmodules -fmodules-cache-path=%t/mcp -I %S/Inputs/module -Rindex-store 2> %t.err2
// RUN: %clang -target x86_64-apple-macos10.7 -fsyntax-only %s -o %t.o -index-store-path %t/idx2 -fmodules -fmodules-cache-path=%t/mcp -I %S/Inputs/module -Rindex-store 2> %t.err3
// RUN: FileCheck -input-file=%t.err1 -check-prefix=CREATING_MODULES %s -allow-empty
// RUN: FileCheck -input-file=%t.err2 -check-prefix=CREATING_INDEX_DATA_FROM_MODULE_FILES %s
// RUN: FileCheck -input-file=%t.err3 -check-prefix=EXISTING_INDEX_DATA_FROM_MODULE_FILES %s -allow-empty
// RUN: c-index-test core -print-unit %t/idx1 > %t/all-units1.txt
// RUN: c-index-test core -print-unit %t/idx2 > %t/all-units2.txt
// RUN: c-index-test core -print-record %t/idx1 > %t/all-records1.txt
// RUN: c-index-test core -print-record %t/idx2 > %t/all-records2.txt
// RUN: diff -u %t/all-units1.txt %t/all-units2.txt
// RUN: diff -u %t/all-records1.txt %t/all-records2.txt

@import ModDep;

// CREATING_MODULES-NOT: remark:

// CREATING_INDEX_DATA_FROM_MODULE_FILES: remark: producing index data for module file {{.*}}ModDep{{.*}}.pcm
// CREATING_INDEX_DATA_FROM_MODULE_FILES: remark: producing index data for module file {{.*}}ModTop{{.*}}.pcm

// EXISTING_INDEX_DATA_FROM_MODULE_FILES-NOT: remark: