aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-unused-variables.cpp
blob: 001048910ce9236df979f1eb48419746c11e5fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: clang -fsyntax-only -Wunused-variable -verify %s

template<typename T> void f() {
	T t;
	t = 17;
}

struct A { A(); };
struct B { ~B(); };

void f() {
  A a;
  B b;
}