brintos

brintos / llvm-project-archived public Read only

0
0
Text · 479 B · c89b613 Raw
23 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang -std=c++20 %t/a.cppm --precompile -o %t/a.pcm6// RUN: %clang -std=c++20 %t/test.cc -fprebuilt-module-path=%t -fsyntax-only -Xclang -verify7 8//--- a.h9template <typename G> static inline void func() {}10template <typename T = long> void a() { func<T>(); }11 12//--- a.cppm13module;14#include "a.h"15export module a;16export using ::a;17 18//--- test.cc19import a;20auto m = (a(), 0);21 22// expected-no-diagnostics23