summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/koenig9.C
blob: 46efcb72d1e2597f2978f9a542992a8a8287d889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }

// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Theodore.Papadopoulo 23 Jun 2000 <Theodore.Papadopoulo@sophia.inria.fr>

int count (int);
void *count (char *, char);

void foo(const char*,...);

inline void
bar() {
  foo("",count);    //  { dg-error "overloaded function" "multiple overloaded functions" }
}