Lines Matching full:module
5 // RUN: %clang_cc1 -std=c++20 -verify %t/global-vs-module.cppm
6 // RUN: %clang_cc1 -std=c++20 -verify %t/global-vs-module.cppm -DEXPORT
7 // RUN: %clang_cc1 -std=c++20 -verify %t/global-vs-module.cppm -DUSING
9 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/global-vs-module.cppm -o %t/M.pcm -DNO_GLOB…
10 // RUN: %clang_cc1 -std=c++20 -verify %t/module-vs-global.cpp -fmodule-file=M=%t/M.pcm
15 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -DMODULE_INTERFACE -…
16 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -DMODULE_INTERFACE -…
18 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -emit-module-interfa…
19 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -fmodule-file=N=%t/N…
21 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -fmodule-file=N=%t/N…
23 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -emit-module-interfa…
24 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -fmodule-file=N=%t/N…
25 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=N=%t/N-no-M.pcm -DNO_IMPORT
27 //--- global-vs-module.cppm
29 module;
45 export module M;
62 …nt var; // expected-error {{declaration of 'var' in module M follows declaration in the global mod…
63 …unc(); // expected-error {{declaration of 'func' in module M follows declaration in the global mod…
64 …ct str; // expected-error {{declaration of 'str' in module M follows declaration in the global mod…
67 …pl; // expected-error {{declaration of 'var_tpl' in module M follows declaration in the global mod…
68 …); // expected-error {{declaration of 'func_tpl' in module M follows declaration in the global mod…
69 …pl; // expected-error {{declaration of 'str_tpl' in module M follows declaration in the global mod…
70 …t; // expected-error {{declaration of 'type_tpl' in module M follows declaration in the global mod…
80 //--- module-vs-global.cpp
83 …ror {{declaration of 'var' in the global module follows declaration in module M}} expected-note@gl…
84 …or {{declaration of 'func' in the global module follows declaration in module M}} expected-note@gl…
85 …ror {{declaration of 'str' in the global module follows declaration in module M}} expected-note@gl…
88 …{{declaration of 'var_tpl' in the global module follows declaration in module M}} expected-note@gl…
89 …{declaration of 'func_tpl' in the global module follows declaration in module M}} expected-note@gl…
90 …{{declaration of 'str_tpl' in the global module follows declaration in module M}} expected-note@gl…
91 …{declaration of 'type_tpl' in the global module follows declaration in module M}} expected-note@gl…
97 //--- module-vs-module.cpp
99 export module N;
101 module N;
109 …xpected-error {{declaration of 'var' in module N follows declaration in module M}} expected-note@g…
110 …pected-error {{declaration of 'func' in module N follows declaration in module M}} expected-note@g…
111 …xpected-error {{declaration of 'str' in module N follows declaration in module M}} expected-note@g…
114 …ted-error {{declaration of 'var_tpl' in module N follows declaration in module M}} expected-note@g…
115 …ed-error {{declaration of 'func_tpl' in module N follows declaration in module M}} expected-note@g…
116 …ted-error {{declaration of 'str_tpl' in module N follows declaration in module M}} expected-note@g…
117 …ed-error {{declaration of 'type_tpl' in module N follows declaration in module M}} expected-note@g…