* tests/scripts/features/conditionals: Test this scenario.
struct variable *v;
enum variable_origin origin = vmod.override_v ? o_override : o_file;
- /* Variable assignment ends the previous rule. */
- record_waiting_files ();
-
/* If we're ignoring then we're done now. */
if (ignoring)
{
continue;
}
+ /* Variable assignment ends the previous rule. */
+ record_waiting_files ();
+
if (vmod.undefine_v)
{
do_undefine (p, origin, ebuf);
'',
'success');
+# SV 47960 : ensure variable assignments in non-taken legs don't cause problems
+run_make_test('
+ifneq ($(FOO),yes)
+target:
+else
+BAR = bar
+target:
+endif
+ @echo one
+',
+ '', "one\n");
+
# This tells the test driver that the perl test script executed properly.
1;
+
+### Local Variables:
+### eval: (setq whitespace-action (delq 'auto-cleanup whitespace-action))
+### End: