23 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: cd %t4//5// RUN: %clang_cc1 -std=c++20 %t/m.cppm -fsyntax-only -verify6 7//--- foo.h8 9template <typename... U>10static void foo(U...) noexcept;11 12class A {13 template <typename... U>14 friend void foo(U...) noexcept;15};16 17//--- m.cppm18// expected-no-diagnostics19module;20#include "foo.h"21export module m;22export using ::A;23