aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/pr56826.cppm
blob: e6eb60bd2d0f74d2c61269ccd801afde87afe2c1 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s

export module m3;
export template <class> struct X {
  template <class Self> friend void f(Self &&self) {
    (Self&)self; // expected-warning {{expression result unused}}
  }
};
void g() { f(X<void>{}); } // expected-note {{in instantiation of function template specialization}}