2021-01-27 17:45:56 +08:00
|
|
|
! Test that the driver correctly reports diagnostics from the prescanner. The contents of the include file are irrelevant here.
|
|
|
|
|
|
|
|
! Test with -E (i.e. PrintPreprocessedAction, stops after prescanning)
|
2021-02-23 02:05:18 +08:00
|
|
|
! RUN: %flang -E -I %S/Inputs/ %s 2>&1 | FileCheck %s
|
|
|
|
! RUN: %flang_fc1 -E -I %S/Inputs/ %s 2>&1 | FileCheck %s
|
2021-01-27 17:45:56 +08:00
|
|
|
|
|
|
|
! Test with -fsyntax-only (i.e. ParseSyntaxOnlyAction, stops after semantic checks)
|
2021-02-23 02:05:18 +08:00
|
|
|
! RUN: %flang -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s
|
|
|
|
! RUN: %flang_fc1 -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s
|
2021-01-27 17:45:56 +08:00
|
|
|
|
2021-02-23 02:05:18 +08:00
|
|
|
! CHECK: prescanner-diag.f90:12:20: #include: extra stuff ignored after file name
|
2021-01-27 17:45:56 +08:00
|
|
|
#include <empty.h> comment
|
2021-02-23 02:05:18 +08:00
|
|
|
! CHECK: prescanner-diag.f90:14:20: #include: extra stuff ignored after file name
|
2021-01-27 17:45:56 +08:00
|
|
|
#include "empty.h" comment
|
|
|
|
end
|