Debian Codegraph @

clang/test/Modules/expose-static-inline-from-gmf-5.cppm

raw
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang -std=c++20 %t/a.cppm --precompile -o %t/a.pcm
6 // RUN: %clang -std=c++20 %t/test.cc -fprebuilt-module-path=%t -fsyntax-only -Xclang -verify
7
8 //--- a.h
9 namespace ns {
10 namespace {
11 template <typename G> void func() {}
12 }
13 template <typename T = long> void a() { func<T>(); }
14 }
15
16 //--- a.cppm
17 module;
18 #include "a.h"
19 export module a;
20 export using ns::a;
21
22 //--- test.cc
23 import a;
24 auto m = (a(), 0);
25
26 // expected-no-diagnostics