Improve detection of -fzero-call-used-regs=used.

Should better detect problems with gcc 13 on m68k.  bz#3673 from Colin
Watson via bz#3673 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934

Signed-off-by: Darren Tucker <dtucker@dtucker.net>
This commit is contained in:
Darren Tucker 2024-03-25 09:28:02 +11:00
parent 86bdd3853f
commit f9193f03db
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -20,7 +20,10 @@ char *f2(char *s, ...) {
va_end(args);
return strdup(ret);
}
int i;
double d;
const char *f3(int s) {
i = (int)d;
return s ? "good" : "gooder";
}
int main(int argc, char **argv) {