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