[cfe-commits] r93644 - /cfe/trunk/test/SemaCXX/unused.cpp
Douglas Gregor
dgregor at apple.com
Sat Jan 16 10:17:22 PST 2010
Author: dgregor
Date: Sat Jan 16 12:17:21 2010
New Revision: 93644
URL: http://llvm.org/viewvc/llvm-project?rev=93644&view=rev
Log:
Improve the test for unused-expression warnings slightly
Modified:
cfe/trunk/test/SemaCXX/unused.cpp
Modified: cfe/trunk/test/SemaCXX/unused.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/unused.cpp?rev=93644&r1=93643&r2=93644&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/unused.cpp (original)
+++ cfe/trunk/test/SemaCXX/unused.cpp Sat Jan 16 12:17:21 2010
@@ -13,3 +13,12 @@
APInt::operator=(RHS);
return *this;
}
+
+template<typename T>
+struct X {
+ X();
+};
+
+void test() {
+ X<int>();
+}
More information about the cfe-commits
mailing list