Debian Codegraph @

gcc/testsuite/g++.dg/lookup/builtin6.C

raw
1 // PR c++/69657
2 // { dg-options -fdump-tree-gimple }
3 // { dg-final { scan-tree-dump "ABS_EXPR" "gimple" } }
4
5 namespace foo
6 {
7 inline double
8 abs(double x)
9 { return __builtin_fabs(x); }
10 }
11 using foo::abs;
12
13 extern "C" int abs(int);
14
15 namespace bar {
16 using ::abs;
17 }
18
19 int
20 wrapper (int x)
21 {
22 return bar::abs (x) + bar::abs(x);
23 }