diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-16 18:17:21 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-16 18:17:21 +0000 |
commit | 6a0166edea84e6abccce393c15e3dee7b96f7eb6 (patch) | |
tree | ff3924e1937ae3caf94509f2b12c9e9aae99fe18 | |
parent | 5d52e47ed6a4f920723ebec371594a3fe7878d7c (diff) |
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
-rw-r--r-- | test/SemaCXX/unused.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/unused.cpp b/test/SemaCXX/unused.cpp index 6fd108186a..88783ce1a6 100644 --- a/test/SemaCXX/unused.cpp +++ b/test/SemaCXX/unused.cpp @@ -13,3 +13,12 @@ APSInt& APSInt::operator=(const APSInt &RHS) { APInt::operator=(RHS); return *this; } + +template<typename T> +struct X { + X(); +}; + +void test() { + X<int>(); +} |