Skip to content

Commit

Permalink
TEST: Add for platform in --cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Jan 26, 2024
1 parent 2705779 commit b9250f4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,9 @@ RUN(NAME cpp_pre_01 LABELS gfortran llvm c
RUN(NAME cpp_pre_02 LABELS gfortran llvm c wasm
EXTRA_ARGS --cpp
GFORTRAN_ARGS -cpp)
RUN(NAME cpp_pre_03 LABELS gfortran llvm c wasm
EXTRA_ARGS --cpp
GFORTRAN_ARGS -cpp)

RUN(NAME dabs_01 LABELS gfortran llvmImplicit)

Expand Down
24 changes: 24 additions & 0 deletions integration_tests/cpp_pre_03.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
program cpp_pre_03
#ifdef _WIN32
print *,"Windows"
#endif
#ifdef __linux__
print *,"Linux"
#endif
#ifdef __APPLE__
print *,"OSX"
#endif
#ifdef __aarch64__
print *,"Apple ARM"
#endif
#ifdef __x86_64__
print *,"Apple AMD"
#endif
#ifdef __FreeBSD__
print *,"FreeBSD"
#endif
#ifdef __OpenBSD__
print *,"OpenBSD"
#endif
print *, "Ok"
end program

0 comments on commit b9250f4

Please sign in to comment.