OSDN Git Service

New test case.
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jan 1999 00:48:11 +0000 (00:48 +0000)
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jan 1999 00:48:11 +0000 (00:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24854 138bc75d-0d04-0410-961f-82ee72b054a4

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

diff --git a/gcc/testsuite/g++.old-deja/g++.martin/overload1.C b/gcc/testsuite/g++.old-deja/g++.martin/overload1.C
new file mode 100644 (file)
index 0000000..8464fba
--- /dev/null
@@ -0,0 +1,12 @@
+//Overload resolution should consider both declarations of func identically.
+
+struct S{};
+void func(S&){}
+
+int main()
+{
+  void func(S&);
+  S s;
+  func(s);
+}
+