New test case suggested by Nathan Sidwell <nathan@acm.org>
authorMartin v. Löwis <loewis@gcc.gnu.org>
Wed, 31 Mar 1999 06:08:41 +0000 (06:08 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Wed, 31 Mar 1999 06:08:41 +0000 (06:08 +0000)
From-SVN: r26078

gcc/testsuite/g++.old-deja/g++.martin/typedef1.C [new file with mode: 0644]

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 (file)
index 0000000..b1561f2
--- /dev/null
@@ -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;
+}