diff options
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.martin/typedef1.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/typedef1.C b/gcc/testsuite/g++.old-deja/g++.martin/typedef1.C new file mode 100644 index 00000000000..b1561f21da5 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.martin/typedef1.C @@ -0,0 +1,14 @@ +// Build don't link: + +// Copyright (C) 1999 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 31 Mar 1999 <nathan@acm.org> + +// Make sure we see through typedefs. + +typedef int Int; + +void fn() +{ + int *p; + Int *&pr2 = p; +} |