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 // expected-no-diagnostics 4 module M; 5 6 // FIXME: Use of internal linkage entities should be rejected. use_from_module_impl()7void use_from_module_impl() { 8 external_linkage_fn(); 9 module_linkage_fn(); 10 internal_linkage_fn(); 11 (void)external_linkage_class{}; 12 (void)module_linkage_class{}; 13 (void)internal_linkage_class{}; 14 (void)external_linkage_var; 15 (void)module_linkage_var; 16 (void)internal_linkage_var; 17 } 18