Ejemplo n.º 1
0
void invalidReturnType() {
    int rank = 0;
    int buf = 0;
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    if (rank == 0) {
        MPI_Send(&buf, 1, MPI_INT, rank + doubleVal(), 0, MPI_COMM_WORLD); // expected-warning{{Return value type used at index 3 is not valid.}}
    }
    else if (rank == 1) {
        MPI_Recv(&buf, 1, MPI_INT, rank - doubleVal(), 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE); // expected-warning{{Return value type used at index 3 is not valid.}}
    }
}
 String DoubleDocValues::toString(int32_t doc)
 {
     return DoubleFieldSourcePtr(_source)->description() + L"=" + StringUtils::toString(doubleVal(doc));
 }