xref: /llvm-project/clang/test/SemaCXX/warn-unused-variables.cpp (revision f5dc6fa252cea10cae0495fdf4357f752bf039e1)
1 // RUN: clang -fsyntax-only -Wunused-variable -verify %s
2 
3 template<typename T> void f() {
4 	T t;
5 	t = 17;
6 }
7 
8 struct A { A(); };
9 struct B { ~B(); };
10 
11 void f() {
12   A a;
13   B b;
14 }