Commit 9460501a authored by Robert Maynard's avatar Robert Maynard

FindOpenACC: Provide a Fortran snippet that compiles with gfortran

The original Fortran snippet would fail to compile with the error
message of:
```
  return 0;
         1
Error: Alternate RETURN statement at (1) is only allowed within a SUBROUTINE
```

We solve this by removing the early termination logic.
parent 38a5b020
......@@ -60,9 +60,7 @@ int main(){
set(OpenACC_Fortran_TEST_SOURCE
"
program test
#ifdef _OPENACC
return 0;
#else
#ifndef _OPENACC
breaks_on_purpose
#endif
endprogram test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment