gcc/testsuite/g++.old-deja/g++.ns/koenig9.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Theodore.Papadopoulo 23 Jun 2000 <[email protected]> |
| 5 | |
| 6 | int count (int); |
| 7 | void *count (char *, char); |
| 8 | |
| 9 | void foo(const char*,...); |
| 10 | |
| 11 | inline void |
| 12 | bar() { |
| 13 | foo("",count); // { dg-error "overloaded function" "multiple overloaded functions" } |
| 14 | } |