diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/lookup13.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/lookup13.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup13.C b/gcc/testsuite/g++.old-deja/g++.other/lookup13.C new file mode 100644 index 000000000..872c35ff0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup13.C @@ -0,0 +1,19 @@ +// { dg-do run } +// Origin: Mark Mitchell <mark@codesourcery.com> + +int main() +{ + typedef double I; + + struct S1 { + typedef char I; + + struct S2; + }; + + struct S1::S2 { + typedef I J; + }; + + return !(sizeof (S1::S2::J) == 1); +} |