1 // RUN: %clang_cc1 -std=c++1z -fmodules-ts %S/module.cppm -emit-module-interface -o %t 2 // RUN: %clang_cc1 -std=c++1z -fmodules-ts -fmodule-file=%t %s -verify 3 import M; 4 use_from_module_impl()5void use_from_module_impl() { 6 external_linkage_fn(); 7 module_linkage_fn(); // expected-error {{undeclared identifier}} 8 internal_linkage_fn(); // expected-error {{undeclared identifier}} 9 (void)external_linkage_class{}; 10 (void)module_linkage_class{}; // expected-error {{undeclared identifier}} expected-error 0+{{}} 11 (void)internal_linkage_class{}; // expected-error {{undeclared identifier}} expected-error 0+{{}} 12 // expected-note@module.cppm:9 {{here}} 13 (void)external_linkage_var; 14 (void)module_linkage_var; // expected-error {{undeclared identifier}} 15 (void)internal_linkage_var; // expected-error {{undeclared identifier}} 16 } 17