summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/warn-unused-private-field-delayed-template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/warn-unused-private-field-delayed-template.cpp')
-rw-r--r--test/SemaCXX/warn-unused-private-field-delayed-template.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-unused-private-field-delayed-template.cpp b/test/SemaCXX/warn-unused-private-field-delayed-template.cpp
new file mode 100644
index 0000000..7cafcca
--- /dev/null
+++ b/test/SemaCXX/warn-unused-private-field-delayed-template.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -fdelayed-template-parsing -Wunused-private-field -Wused-but-marked-unused -Wno-uninitialized -verify -std=c++11 %s
+// expected-no-diagnostics
+
+class EverythingMayBeUsed {
+ int x;
+public:
+ template <class T>
+ void f() {
+ x = 0;
+ }
+};
OpenPOWER on IntegriCloud