Extend names.cc to check the names that Jakub's plugin found.

libstdc++-v3/ChangeLog:

        * testsuite/17_intro/names.cc (ext, max_iter, ret, subs, Rg, Rs):
        Define macros.
        [__cplusplus < 201103] (mutex): Define macro.
---
Jakub confirmed that his new plugin doesn't catch all uses of
non-reserved names, so this test still seems useful.

Tested x86_64-linux. Pushed to trunk.

 libstdc++-v3/testsuite/17_intro/names.cc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libstdc++-v3/testsuite/17_intro/names.cc 
b/libstdc++-v3/testsuite/17_intro/names.cc
index f56c045fedf7..c6fe81c5325d 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -113,12 +113,16 @@
 #define attributes (
 #define bin_op (
 #define clockid (
+#define ext (
 #define func (
+#define max_iter (
 #define max_val (
 #define min_val (
 #define object (
 #define ostr (
 #define policy (
+#define ret (
+#define subs (
 #define sz (
 #define tinfo (
 #define tmp (
@@ -126,6 +130,7 @@
 #define value_t (
 
 #if __cplusplus < 201103L
+#define mutex  (
 #define uses_allocator  (
 #endif
 
@@ -220,6 +225,8 @@
 #define Proj2                  Proj2 is not a reserved name
 #define Ptr                    Ptr is not a reserved name
 #define Reference              Reference is not a reserved name
+#define Rg                     Rg is not a reserved name
+#define Rs                     Rs is not a reserved name
 #define Seq                    Seq is not a reserved name
 #define Seq_RAIter             Seq_RAIter is not a reserved name
 #define Series                 Series is not a reserved name
-- 
2.53.0

Reply via email to