gcc/testsuite/g++.dg/lookup/extern-c-hidden.C
raw| 1 | // Make sure unhidding an extern-c still checks it is compatible |
| 2 | |
| 3 | extern "C" float fabsf (float); // { dg-message "previous declaration" } |
| 4 | |
| 5 | namespace Bob |
| 6 | { |
| 7 | extern "C" float fabsf (float, float); // { dg-error "20:conflicting C language" } |
| 8 | extern "C" double fabs (double, double); // { dg-message "previous declaration" } |
| 9 | } |
| 10 | |
| 11 | extern "C" double fabs (double); // { dg-error "19:conflicting C language" } |