commit | 6a0166edea84e6abccce393c15e3dee7b96f7eb6 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sat Jan 16 18:17:21 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sat Jan 16 18:17:21 2010 +0000 |
tree | ff3924e1937ae3caf94509f2b12c9e9aae99fe18 | |
parent | 5d52e47ed6a4f920723ebec371594a3fe7878d7c [diff] [blame] |
Improve the test for unused-expression warnings slightly git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93644 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/unused.cpp b/test/SemaCXX/unused.cpp index 6fd1081..88783ce 100644 --- a/test/SemaCXX/unused.cpp +++ b/test/SemaCXX/unused.cpp
@@ -13,3 +13,12 @@ APInt::operator=(RHS); return *this; } + +template<typename T> +struct X { + X(); +}; + +void test() { + X<int>(); +}