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.
12 lines
225 B
Fortran
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
|