repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
builtin2.C
blob
ca9517ddc3e48a767fea72320e6aaaae0525f925
1
// PR c++/18838
2
// { dg-do compile }
3
4
extern "C" {
5
extern double fabs (double __x) throw () __attribute__ ((__const__));
6
7
__inline double
8
fabs (double __x) throw () { return __builtin_fabs (__x); }
9
}
10
11
double fail_me(double __x) { return fabs(__x); }
12
13
namespace std
14
{
15
using ::fabs;
16
}
17
18
typedef double (*realfn) (double);
19
20
using std::fabs;
21
22
int main ()
23
{
24
realfn myfn = fabs;
25
}