From: Jonathan Wakely Date: Thu, 2 Mar 2017 18:56:57 +0000 (+0000) Subject: Rename 17_intro/headers/names.cc test file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17b0b37f588676516d8a09673ce47ab9a7ad5734;p=gcc.git Rename 17_intro/headers/names.cc test file * testsuite/17_intro/headers/names.cc: Rename to ... * testsuite/17_intro/names.cc: ... here. From-SVN: r245845 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 883cd9ad0cb..a4ccd115d38 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-03-02 Jonathan Wakely + * testsuite/17_intro/headers/names.cc: Rename to ... + * testsuite/17_intro/names.cc: ... here. + PR libstdc++/79789 * include/bits/hashtable_policy.h (__clp2): Use reserved names for parameters and local variables. diff --git a/libstdc++-v3/testsuite/17_intro/headers/names.cc b/libstdc++-v3/testsuite/17_intro/headers/names.cc deleted file mode 100644 index a7d9a6bced3..00000000000 --- a/libstdc++-v3/testsuite/17_intro/headers/names.cc +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (C) 2017 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library is free -// software; you can redistribute it and/or modify it under the -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// . - -// { dg-do compile } - -// Define macros for some common variables names that we must not use for -// naming variables, parameters etc. in the library. -#define tmp ( -#define A ( -#define B ( -#define C ( -#define D ( -#define E ( -#define F ( -#define G ( -#define H ( -#define I ( -#define J ( -#define K ( -#define L ( -#define M ( -#define N ( -#define O ( -#define P ( -#define Q ( -#define R ( -#define S ( -#define T ( -#define U ( -#define V ( -#define W ( -#define X ( -#define Y ( -#define Z ( -#if __cplusplus >= 201103L -// defines member functions called a() and b() -#else -#define a ( -#define b ( -#endif -// and defined data members called c -#define d ( -#define e ( -#define f ( -#define g ( -#if __cplusplus >= 201402L -// defines operator ""h in C++14 -// defines operator ""i in C++14 -#else -#define h ( -#define i ( -#endif -#define j ( -#if __cplusplus >= 201103L -// defines member functions called k() -#else -#define k ( -#endif -#define l ( -#if __cplusplus >= 201103L -// defines member functions called m() and n() -#else -#define m ( -#define n ( -#endif -#define o ( -#if __cplusplus >= 201103L -// defines member functions called p() -#else -#define p ( -#endif -#define q ( -#define r ( -#if __cplusplus >= 201103L -// defines member functions called s() and t() -// and define operator ""s in C++14 -#else -#define s ( -#define t ( -#endif -#define u ( -#define v ( -#define w ( -#define x ( -#define y ( -#define z ( -#include diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc new file mode 100644 index 00000000000..a7d9a6bced3 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -0,0 +1,101 @@ +// Copyright (C) 2017 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// . + +// { dg-do compile } + +// Define macros for some common variables names that we must not use for +// naming variables, parameters etc. in the library. +#define tmp ( +#define A ( +#define B ( +#define C ( +#define D ( +#define E ( +#define F ( +#define G ( +#define H ( +#define I ( +#define J ( +#define K ( +#define L ( +#define M ( +#define N ( +#define O ( +#define P ( +#define Q ( +#define R ( +#define S ( +#define T ( +#define U ( +#define V ( +#define W ( +#define X ( +#define Y ( +#define Z ( +#if __cplusplus >= 201103L +// defines member functions called a() and b() +#else +#define a ( +#define b ( +#endif +// and defined data members called c +#define d ( +#define e ( +#define f ( +#define g ( +#if __cplusplus >= 201402L +// defines operator ""h in C++14 +// defines operator ""i in C++14 +#else +#define h ( +#define i ( +#endif +#define j ( +#if __cplusplus >= 201103L +// defines member functions called k() +#else +#define k ( +#endif +#define l ( +#if __cplusplus >= 201103L +// defines member functions called m() and n() +#else +#define m ( +#define n ( +#endif +#define o ( +#if __cplusplus >= 201103L +// defines member functions called p() +#else +#define p ( +#endif +#define q ( +#define r ( +#if __cplusplus >= 201103L +// defines member functions called s() and t() +// and define operator ""s in C++14 +#else +#define s ( +#define t ( +#endif +#define u ( +#define v ( +#define w ( +#define x ( +#define y ( +#define z ( +#include