Debian Codegraph @

clang/test/Modules/expose-static-inline-from-gmf-2.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 template <typename G> static inline void func() {}
10 template <typename T = long> void a() { func<T>(); }
11
12 //--- a.cppm
13 module;
14 #include "a.h"
15 export module a;
16 export using ::a;
17
18 //--- test.cc
19 import a;
20 auto m = (a(), 0);
21
22 // expected-no-diagnostics