commit | b5352cf949898cd42c8c5bc96a17a831b61ac2e5 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Oct 08 21:35:42 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Oct 08 21:35:42 2009 +0000 |
tree | 574a96542b2b77e6c86b0821b2149b2ac9ac189d | |
parent | b46f57d9daa0c30d79dc8149d30c3e3a12fe2b32 [diff] [blame] |
Implement support for -Wunused-variable, from Oscar Bonilla! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83577 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/warn-unused-variables.cpp b/test/SemaCXX/warn-unused-variables.cpp new file mode 100644 index 0000000..d8b9a00 --- /dev/null +++ b/test/SemaCXX/warn-unused-variables.cpp
@@ -0,0 +1,6 @@ +// RUN: clang -fsyntax-only -Wunused-variable -verify %s + +template<typename T> void f() { + T t; + t = 17; +}