summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-25 00:48:11 +0000
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-25 00:48:11 +0000
commit72800af877e4e1d5033cf4882c7707d482826021 (patch)
tree0633107d1e6e6fc48b0ca060a4f4a82b68ecb34c /gcc
parent49a248382e07a27307833d7885a400305cb19d7d (diff)
downloadppe42-gcc-72800af877e4e1d5033cf4882c7707d482826021.tar.gz
ppe42-gcc-72800af877e4e1d5033cf4882c7707d482826021.zip
New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24854 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.martin/overload1.C12
1 files changed, 12 insertions, 0 deletions
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
index 00000000000..8464fba6f9b
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.martin/overload1.C
@@ -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);
+}
+
OpenPOWER on IntegriCloud