annotate clang/test/Modules/cxx20-10-3-ex1.cpp @ 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 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 // RUN: rm -rf %t
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2 // RUN: mkdir -p %t
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 // RUN: split-file %s %t
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/std10-3-ex1-tu1.cpp \
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 // RUN: -o %t/M_PartImpl.pcm
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/std10-3-ex1-tu2.cpp \
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
9 // RUN: -fmodule-file=M:PartImpl=%t/M_PartImpl.pcm -o %t/M.pcm -verify
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/std10-3-ex1-tu3.cpp \
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 // RUN: -o %t/M_Part.pcm
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/std10-3-ex1-tu4.cpp \
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
15 // RUN: -fmodule-file=M:Part=%t/M_Part.pcm -o %t/M.pcm
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17 //--- std10-3-ex1-tu1.cpp
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18 module M:PartImpl;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
20 // expected-no-diagnostics
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
21
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
22 //--- std10-3-ex1-tu2.cpp
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
23 export module M;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
24 // error: exported partition :Part is an implementation unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
25 export import :PartImpl; // expected-error {{module partition implementations cannot be exported}}
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
26
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
27 //--- std10-3-ex1-tu3.cpp
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
28 export module M:Part;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
29
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
30 // expected-no-diagnostics
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
31
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
32 //--- std10-3-ex1-tu4.cpp
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
33 export module M;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
34 export import :Part;
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
35
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
36 // expected-no-diagnostics