brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 5064af1 Raw
21 lines · plain
1! Test that the driver correctly reports diagnostics from the prescanner, no2! matter what driver action/phase is run. We need this test as Flang currently3! has no central API for managing the diagnostics. For this reason the driver4! needs to make sure that the diagnostics are indeed issued (rather that relying5! on some DiagnosticsEngine).6 7! Test with -E (i.e. PrintPreprocessedAction, stops after prescanning)8! RUN: %flang -pedantic -E -I %S/Inputs/ %s 2>&1 | FileCheck %s9! RUN: %flang_fc1 -pedantic -E -I %S/Inputs/ %s 2>&1 | FileCheck %s10 11! Test with -fsyntax-only (i.e. ParseSyntaxOnlyAction, stops after semantic checks)12! RUN: %flang -pedantic -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s13! RUN: %flang_fc1 -pedantic -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s14 15! CHECK: prescanner-diag.f90:[[#@LINE+3]]:10: portability: #include: extra stuff ignored after file name16! CHECK: prescanner-diag.f90:[[#@LINE+3]]:10: portability: #include: extra stuff ignored after file name17 18#include <empty.h> comment19#include "empty.h" comment20end21