hanchenye-llvm-project/clang/test/SemaCXX/warn-unused-variables.cpp

15 lines
184 B
C++
Raw Normal View History

// RUN: clang -fsyntax-only -Wunused-variable -verify %s
template<typename T> void f() {
T t;
t = 17;
}
2009-11-07 16:24:59 +08:00
// PR5407
struct A { A(); };
struct B { ~B(); };
void f() {
A a;
B b;
2009-11-07 16:24:59 +08:00
}