Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / mod-file-rewriter.f90
blob2d393dfeca50800d2c21204aa8959acaed89269e
1 ! RUN: rm -fr %t && mkdir %t && cd %t
2 ! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %s 2>&1 | FileCheck %s --check-prefix CHECK_CHANGED
3 ! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %s 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED
4 ! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %p/Inputs/mod-file-unchanged.f90 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED
5 ! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %p/Inputs/mod-file-changed.f90 2>&1 | FileCheck %s --check-prefix CHECK_CHANGED
7 module m
8 real :: x(10)
9 end module m
11 ! CHECK_CHANGED: Processing module {{.*}}.mod: module written
12 ! CHECK_UNCHANGED: Processing module {{.*}}.mod: module unchanged, not writing