Files
clang-p2996/flang/test/Driver/predefined-macros-powerpc.f90
Daniel Chen 987258f5c7 [Flang] Add __powerpc__ macro to set c_intmax_t to c_int64_t rather than c_int128_t as PowerPC only supports up to c_int64_t. (#81222)
PowerPC only supports up to `c_int64_t`. Add macro `__powerpc__` and
preprocess it for setting `c_intmax_t` in `iso_c_binding` intrinsic
module.
2024-02-13 11:03:54 -05:00

12 lines
225 B
Fortran

! Test predefined macro for PowerPC architecture
! RUN: %flang_fc1 -cpp -E %s | FileCheck %s
! REQUIRES: target=powerpc{{.*}}
! CHECK: integer :: var1 = 1
#if __powerpc__
integer :: var1 = __powerpc__
#endif
end program