// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s export module m3; export template struct X { template friend void f(Self &&self) { (Self&)self; // expected-warning {{expression result unused}} } }; void g() { f(X{}); } // expected-note {{in instantiation of function template specialization}}