mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 02:14:55 +08:00
new
From-SVN: r18870
This commit is contained in:
parent
d3a8592787
commit
72404d452c
11
gcc/testsuite/g++.old-deja/g++.other/overload1.C
Normal file
11
gcc/testsuite/g++.old-deja/g++.other/overload1.C
Normal file
@ -0,0 +1,11 @@
|
||||
struct A {
|
||||
A operator+ (int) const { return *this; }
|
||||
};
|
||||
|
||||
A operator+ (A, float);
|
||||
|
||||
main ()
|
||||
{
|
||||
A a;
|
||||
a + 1;
|
||||
}
|
8
gcc/testsuite/g++.old-deja/g++.other/pmf1.C
Normal file
8
gcc/testsuite/g++.old-deja/g++.other/pmf1.C
Normal file
@ -0,0 +1,8 @@
|
||||
struct foo {};
|
||||
typedef long unsigned int & (foo::*pmf)(void);
|
||||
void fn (...) {}
|
||||
int main ()
|
||||
{
|
||||
pmf y = 0;
|
||||
fn (y);
|
||||
}
|
Loading…
Reference in New Issue
Block a user