From a76702cb3631410194bf1e880c025e1255b81fa4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 29 May 2013 17:01:26 +0200 Subject: [PATCH] make sure missing return values still warn --- tests/rassign.qc | 2 ++ tests/rassign.tmpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/rassign.qc b/tests/rassign.qc index 69ec31c..f39b6ea 100644 --- a/tests/rassign.qc +++ b/tests/rassign.qc @@ -15,8 +15,10 @@ vector f_vector() { } string f_string() { +#ifndef FAIL_TEST return = "hello"; return = "world"; +#endif return; } diff --git a/tests/rassign.tmpl b/tests/rassign.tmpl index f169c82..948cb54 100644 --- a/tests/rassign.tmpl +++ b/tests/rassign.tmpl @@ -1,7 +1,7 @@ I: rassign.qc D: test return assignments T: -execute -C: -freturn-assignments +C: -fftepp -freturn-assignments M: 200 M: '200 200 200' M: world -- 2.39.5