mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 11:09:45 +08:00
* g++.old-deja/g++.other/typedef8.C: New test.
From-SVN: r35780
This commit is contained in:
parent
7a8b13758c
commit
074900c50e
@ -1,3 +1,7 @@
|
||||
2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.other/typedef8.C: New test.
|
||||
|
||||
2000-08-18 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.benjamin/13478.C: Mark candidate.
|
||||
|
26
gcc/testsuite/g++.old-deja/g++.other/typedef8.C
Normal file
26
gcc/testsuite/g++.old-deja/g++.other/typedef8.C
Normal file
@ -0,0 +1,26 @@
|
||||
// Build don't link:
|
||||
//
|
||||
// Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
// Contributed by Nathan Sidwell 17 Aug 2000 <nathan@codesourcery.com>
|
||||
|
||||
// bug 39. We'd generated bogus errors when using a typedef of a nested class.
|
||||
|
||||
struct X1
|
||||
{
|
||||
typedef struct {
|
||||
} MyStruct1;
|
||||
typedef struct M2 {
|
||||
} MyStruct2;
|
||||
};
|
||||
|
||||
X1::MyStruct1 foo()
|
||||
{
|
||||
X1::MyStruct1 m1;
|
||||
return m1;
|
||||
}
|
||||
|
||||
X1::MyStruct2 baz()
|
||||
{
|
||||
X1::MyStruct2 m1;
|
||||
return m1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user