c++: Add fixed test [PR93614]
This was fixed by r11-86. PR c++/93614 gcc/testsuite/ChangeLog: * g++.dg/template/lookup18.C: New test.
This commit is contained in:
parent
689407ef91
commit
066b3258bb
1 changed files with 17 additions and 0 deletions
17
gcc/testsuite/g++.dg/template/lookup18.C
Normal file
17
gcc/testsuite/g++.dg/template/lookup18.C
Normal file
|
@ -0,0 +1,17 @@
|
|||
// PR c++/93614
|
||||
|
||||
template<class T>
|
||||
class foo{};
|
||||
|
||||
template<class T>
|
||||
class template_class_with_struct
|
||||
{
|
||||
void my_method() {
|
||||
if(this->b.foo < 1);
|
||||
};
|
||||
|
||||
struct bar
|
||||
{
|
||||
long foo;
|
||||
} b;
|
||||
};
|
Loading…
Add table
Reference in a new issue