Rename identifiers in a test-case.
diff mbox series

Message ID e780bb2e-c999-70af-84f3-ce396456ed38@suse.cz
State New
Headers show
Series
  • Rename identifiers in a test-case.
Related show

Commit Message

Martin Liška Nov. 8, 2019, 9:58 a.m. UTC
Hi.

I renamed identifiers and reformatted the test-case.
I'm going to install the patch.

Martin

gcc/testsuite/ChangeLog:

2019-11-08  Martin Liska  <mliska@suse.cz>

	* g++.dg/pr92339.C: Rename identifiers to something
	more readable.
---
  gcc/testsuite/g++.dg/pr92339.C | 19 ++++++++++++++-----
  1 file changed, 14 insertions(+), 5 deletions(-)

Patch
diff mbox series

diff --git a/gcc/testsuite/g++.dg/pr92339.C b/gcc/testsuite/g++.dg/pr92339.C
index 5bf15b08b17..c94b1d9bc71 100644
--- a/gcc/testsuite/g++.dg/pr92339.C
+++ b/gcc/testsuite/g++.dg/pr92339.C
@@ -1,10 +1,19 @@ 
 /* PR c++/92339  */
 /* { dg-options "-std=c++11" } */
 
-class a {
-  template <typename b, b a::*> struct c { c(a *); };
+class classA
+{
+  template <typename typeB, typeB classA::*> struct typeC
+  {
+    typeC (classA *);
+  };
   int m_fn1();
-  unsigned long d;
-  using e = c<unsigned long, &a::d>;
+  unsigned long fieldD;
+  using typeE = typeC<unsigned long, &classA::fieldD>;
 };
-int a::m_fn1() { e(this); return 0; }
+int
+classA::m_fn1 ()
+{
+  typeE (this);
+  return 0;
+}