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;
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(){
program test
#ifdef _OPENACC
return 0;
#ifndef _OPENACC
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