From 6a0166edea84e6abccce393c15e3dee7b96f7eb6 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 16 Jan 2010 18:17:21 +0000 Subject: [PATCH] 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 --- test/SemaCXX/unused.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); +} -- 2.50.1