From 7e5db637b16062359215b497840243edcb768430 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 8 Nov 2019 10:59:09 +0100 Subject: [PATCH] Rename identifiers in a test-case. 2019-11-08 Martin Liska * g++.dg/pr92339.C: Rename identifiers to something more readable. From-SVN: r277960 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/pr92339.C | 19 ++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d0d4ef23b0..8b7bea0b6e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-11-08 Martin Liska + + * g++.dg/pr92339.C: Rename identifiers to something + more readable. + 2019-11-08 Richard Sandiford * gcc.target/aarch64/sve/acle/general/deref_2.c: New test. 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 struct c { c(a *); }; +class classA +{ + template struct typeC + { + typeC (classA *); + }; int m_fn1(); - unsigned long d; - using e = c; + unsigned long fieldD; + using typeE = typeC; }; -int a::m_fn1() { e(this); return 0; } +int +classA::m_fn1 () +{ + typeE (this); + return 0; +} -- 2.30.2