Closed gary-funck closed 11 years ago
Here is the test case.
// Tester for "issue 64" compliance: upc_barrier argument
// Copyright 2013, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to
// receipt of any required approvals from U.S. Dept. of Energy)
// See the full license terms at
// http://upc.lbl.gov/download/dist/LICENSE.TXT
#include <upc.h>
shared int x;
int main(void) {
// This is an implicit pointer-to-shared -> integer conversion and should at least warn.
upc_barrier &x;
upc_notify &x;
upc_wait &x;
return 0;
}
This is effectively a duplicate of #16. CodeGen doesn't know what to do with these casts.
The following test case failed with the following internal error.