================ @@ -0,0 +1,20 @@ +! Test that -ffp-maxmin-behavior is accepted by flang -fc1 (all values and +! unknown defaulting to legacy) and is not recognized by the flang driver. + +program p +end program p + +! flang -fc1 accepts all valid values +! RUN: %flang_fc1 -fsyntax-only -ffp-maxmin-behavior=legacy %s +! RUN: %flang_fc1 -fsyntax-only -ffp-maxmin-behavior=portable %s +! RUN: %flang_fc1 -fsyntax-only -ffp-maxmin-behavior=extremum %s +! RUN: %flang_fc1 -fsyntax-only -ffp-maxmin-behavior=extremenum %s + +! flang -fc1 accepts unknown value (defaults to legacy, no error) +! RUN: %flang_fc1 -fsyntax-only -ffp-maxmin-behavior=invalid %s + +! flang driver does not forward the option to -fc1 (fc1-only option) ---------------- tarunprabhu wrote:
Since this is an `-fc1`-only option, it may be better to check that the driver explicitly rejects it. https://github.com/llvm/llvm-project/pull/184730 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
