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