Rename identifiers in a test-case.
2019-11-08 Martin Liska <mliska@suse.cz> * g++.dg/pr92339.C: Rename identifiers to something more readable. From-SVN: r277960
This commit is contained in:
parent
74266b0011
commit
7e5db637b1
@ -1,3 +1,8 @@
|
||||
2019-11-08 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* g++.dg/pr92339.C: Rename identifiers to something
|
||||
more readable.
|
||||
|
||||
2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
* gcc.target/aarch64/sve/acle/general/deref_2.c: New test.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user