[flang] Replace module writer posix file handling with llvm file handling. (flang...
[platform/upstream/llvm.git] / flang / test-lit / Semantics / mod-file-rewriter.f90
1 ! RUN: rm -fr %t && mkdir %t && cd %t
2 ! RUN: %f18 -fparse-only -fdebug-module-writer %s 2>&1 | FileCheck %s --check-prefix CHECK_CHANGED
3 ! RUN: %f18 -fparse-only -fdebug-module-writer %s 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED
4 ! RUN: %f18 -fparse-only -fdebug-module-writer %p/Inputs/mod-file-unchanged.f90 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED
5 ! RUN: %f18 -fparse-only -fdebug-module-writer %p/Inputs/mod-file-changed.f90 2>&1 | FileCheck %s --check-prefix CHECK_CHANGED
6
7 module m
8   real :: x(10)
9 end module m
10
11 ! CHECK_CHANGED: Processing module {{.*}}.mod: module written
12 ! CHECK_UNCHANGED: Processing module {{.*}}.mod: module unchanged, not writing