summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/unused.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/unused.cpp')
-rw-r--r--test/SemaCXX/unused.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/unused.cpp b/test/SemaCXX/unused.cpp
index 6fd1081..88783ce 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>();
+}
OpenPOWER on IntegriCloud