re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c...
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / builtin6.C
blob456ade7da1f087ec2eba3ab073800bdb51455f33
1 // PR c++/69657
2 // { dg-options -fdump-tree-gimple }
3 // { dg-final { scan-tree-dump "ABS_EXPR" "gimple" } }
5 namespace foo
7   inline double
8   abs(double x)
9   { return __builtin_fabs(x); }
11 using foo::abs;
13 extern "C" int abs(int);
15 namespace bar {
16   using ::abs;
19 int
20 wrapper (int x)
22   return bar::abs (x) + bar::abs(x);