]> granicus.if.org Git - clang/commitdiff
Improve the test for unused-expression warnings slightly
authorDouglas Gregor <dgregor@apple.com>
Sat, 16 Jan 2010 18:17:21 +0000 (18:17 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 16 Jan 2010 18:17:21 +0000 (18:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93644 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/unused.cpp

index 6fd108186afaf7c7c5b07b3f6bc37cb3d79ce27e..88783ce1a6b3d53479ff05b6313bdc51ac678f5b 100644 (file)
@@ -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>();
+}