summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-unused-variables.cpp
blob: 704fbe232a8ed04173c8ba63f1d09ef816902efc (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;
}

// PR5407
struct A { A(); };
struct B { ~B(); };
void f() {
  A a;
  B b;
}
OpenPOWER on IntegriCloud