clang/test/Modules/module-local-visibility-in-language-linkage.cppm
raw| 1 | // RUN: rm -rf %t |
| 2 | // RUN: split-file %s %t |
| 3 | // RUN: cd %t |
| 4 | // |
| 5 | // RUN: %clang_cc1 -std=c++20 %t/m.a.cppm -emit-module-interface -o %t/a.pcm |
| 6 | // RUN: %clang_cc1 -std=c++20 %t/m.b.cppm -fmodule-file=m:a=%t/a.pcm -fsyntax-only -verify |
| 7 | |
| 8 | //--- m.a.cppm |
| 9 | export module m:a; |
| 10 | int a; |
| 11 | |
| 12 | //--- m.b.cppm |
| 13 | // expected-no-diagnostics |
| 14 | module m:b; |
| 15 | import :a; |
| 16 | extern "C++" int get_a() { return a; } |