diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/overload3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/overload3.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload3.C b/gcc/testsuite/g++.old-deja/g++.other/overload3.C new file mode 100644 index 000000000..cf5ceeba1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/overload3.C @@ -0,0 +1,16 @@ +// { dg-do link } + +void f(const int *); +void f(int *) {} + +void f2(const volatile int *); +void f2(volatile int *) {} + +int i; + +int main() +{ + f(&i); + f2(&i); +} + |