annotate clang/test/Modules/Rmodule-import.m @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t1 %t2
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // Run with -verify, which onliy gets remarks from the main TU.
anatofuz
parents:
diff changeset
4 //
anatofuz
parents:
diff changeset
5 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t1 \
anatofuz
parents:
diff changeset
6 // RUN: -fdisable-module-hash -fsyntax-only -I%S/Inputs/Rmodule-import \
anatofuz
parents:
diff changeset
7 // RUN: -Rmodule-build -Rmodule-import -verify %s
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // Run again, using FileCheck to check remarks from the module builds.
anatofuz
parents:
diff changeset
10 //
anatofuz
parents:
diff changeset
11 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t2 \
anatofuz
parents:
diff changeset
12 // RUN: -fdisable-module-hash -fsyntax-only -I%S/Inputs/Rmodule-import \
anatofuz
parents:
diff changeset
13 // RUN: -Rmodule-build -Rmodule-import %s 2>&1 |\
anatofuz
parents:
diff changeset
14 // RUN: FileCheck %s -implicit-check-not "remark:"
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 #include "A.h" // \
anatofuz
parents:
diff changeset
17 expected-remark-re{{building module 'A' as '{{.*[/\\]}}A.pcm'}} \
anatofuz
parents:
diff changeset
18 expected-remark{{finished building module 'A'}} \
anatofuz
parents:
diff changeset
19 expected-remark-re{{importing module 'A' from '{{.*[/\\]}}A.pcm'}} \
anatofuz
parents:
diff changeset
20 expected-remark-re{{importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm'}} \
anatofuz
parents:
diff changeset
21 expected-remark-re{{importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm'}}
anatofuz
parents:
diff changeset
22 // CHECK: remark: building module 'A'
anatofuz
parents:
diff changeset
23 // CHECK: remark: building module 'B'
anatofuz
parents:
diff changeset
24 // CHECK: remark: building module 'C'
anatofuz
parents:
diff changeset
25 // CHECK: remark: finished building module 'C'
anatofuz
parents:
diff changeset
26 // CHECK: remark: importing module 'C' from '{{.*[/\\]}}C.pcm'
anatofuz
parents:
diff changeset
27 // CHECK: remark: finished building module 'B'
anatofuz
parents:
diff changeset
28 // CHECK: remark: importing module 'B' from '{{.*[/\\]}}B.pcm'
anatofuz
parents:
diff changeset
29 // CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm'
anatofuz
parents:
diff changeset
30 // CHECK: remark: finished building module 'A'
anatofuz
parents:
diff changeset
31 // CHECK: remark: importing module 'A' from '{{.*[/\\]}}A.pcm'
anatofuz
parents:
diff changeset
32 // CHECK: remark: importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm'
anatofuz
parents:
diff changeset
33 // CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm'
anatofuz
parents:
diff changeset
34 #include "B.h" // \
anatofuz
parents:
diff changeset
35 expected-remark-re{{importing module 'B' from '{{.*[/\\]}}B.pcm'}}
anatofuz
parents:
diff changeset
36 // CHECK: remark: importing module 'B' from '{{.*[/\\]}}B.pcm'
anatofuz
parents:
diff changeset
37 #include "C.h" // \
anatofuz
parents:
diff changeset
38 expected-remark-re{{importing module 'C' from '{{.*[/\\]}}C.pcm'}}
anatofuz
parents:
diff changeset
39 // CHECK: remark: importing module 'C' from '{{.*[/\\]}}C.pcm'
anatofuz
parents:
diff changeset
40 @import D; // \
anatofuz
parents:
diff changeset
41 expected-remark-re{{building module 'D' as '{{.*[/\\]}}D.pcm'}} \
anatofuz
parents:
diff changeset
42 expected-remark{{finished building module 'D'}} \
anatofuz
parents:
diff changeset
43 expected-remark-re{{importing module 'D' from '{{.*[/\\]}}D.pcm'}}
anatofuz
parents:
diff changeset
44 // CHECK: remark: building module 'D'
anatofuz
parents:
diff changeset
45 // CHECK: remark: finished building module 'D'
anatofuz
parents:
diff changeset
46 // CHECK: remark: importing module 'D' from '{{.*[/\\]}}D.pcm'