xref: /llvm-project/clang/test/SemaCXX/gh48974.cpp (revision 5ade434a7e74f44d59a3863ddaf4762c97e1181b)
1 // RUN: %clang_cc1 -Werror=unused-parameter -Wfatal-errors -verify %s
2 
a(int && s)3 void a(int &&s) {} // expected-error{{unused parameter 's'}}
4 
b()5 void b() {
6   int sum = a(0);
7 }
8