xref: /llvm-project/flang/test/Semantics/mod-file-rewriter.f90 (revision 1fd4beecc8bb1148123265a63e0bff92b626c4a3)
1f1a8eae3SLuke Ireland! RUN: rm -fr %t && mkdir %t && cd %t
2*1fd4beecSArnamoy Bhattacharyya! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %s 2>&1 | FileCheck %s --check-prefix CHECK_CHANGED
3*1fd4beecSArnamoy Bhattacharyya! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %s 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED
4*1fd4beecSArnamoy Bhattacharyya! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %p/Inputs/mod-file-unchanged.f90 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED
5*1fd4beecSArnamoy Bhattacharyya! RUN: %flang_fc1 -fsyntax-only -fdebug-module-writer %p/Inputs/mod-file-changed.f90 2>&1 | FileCheck %s --check-prefix CHECK_CHANGED
6f1a8eae3SLuke Ireland
7f1a8eae3SLuke Irelandmodule m
8f1a8eae3SLuke Ireland  real :: x(10)
9f1a8eae3SLuke Irelandend module m
10f1a8eae3SLuke Ireland
11f1a8eae3SLuke Ireland! CHECK_CHANGED: Processing module {{.*}}.mod: module written
12f1a8eae3SLuke Ireland! CHECK_UNCHANGED: Processing module {{.*}}.mod: module unchanged, not writing
13