From: Douglas Gregor Date: Sat, 16 Jan 2010 18:17:21 +0000 (+0000) Subject: Improve the test for unused-expression warnings slightly X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a0166edea84e6abccce393c15e3dee7b96f7eb6;p=clang 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 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 +struct X { + X(); +}; + +void test() { + X(); +}