// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -verify %s template void f() { T t; t = 17; } // PR5407 struct A { A(); }; struct B { ~B(); }; void f() { A a; B b; } // PR5531 namespace PR5531 { struct A { }; struct B { B(int); }; struct C { ~C(); }; void test() { A(); B(17); C(); } } template struct X0 { }; template void test_dependent_init(T *p) { X0 i(p); (void)i; } namespace PR6948 { template class X; void f() { X str (read_from_file()); // expected-error{{use of undeclared identifier 'read_from_file'}} } } void unused_local_static() { static int x = 0; static int y = 0; // expected-warning{{unused variable 'y'}} #pragma unused(x) }