blob: c89b613f5074b1a385fec8359dbb671a5a6233ec [file] [log] [blame]
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: split-file %s %t
//
// RUN: %clang -std=c++20 %t/a.cppm --precompile -o %t/a.pcm
// RUN: %clang -std=c++20 %t/test.cc -fprebuilt-module-path=%t -fsyntax-only -Xclang -verify
//--- a.h
template <typename G> static inline void func() {}
template <typename T = long> void a() { func<T>(); }
//--- a.cppm
module;
#include "a.h"
export module a;
export using ::a;
//--- test.cc
import a;
auto m = (a(), 0);
// expected-no-diagnostics