From ee74b9cbbdba4dc9e1c0532915d4f06751a6a561 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 1 May 2012 20:03:15 +0000 Subject: conformtest: Support specifying types before promotion. --- conform/conformtest.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'conform') diff --git a/conform/conformtest.pl b/conform/conformtest.pl index f5860ac139..2d8cfd703c 100644 --- a/conform/conformtest.pl +++ b/conform/conformtest.pl @@ -437,7 +437,12 @@ while ($#headers >= 0) { open (TESTFILE, ">$fnamebase.c"); print TESTFILE "$prepend"; print TESTFILE "#include <$h>\n"; - print TESTFILE "__typeof__ (($type) 0) a;\n"; + if ($type =~ /^promoted:/) { + $type =~ s/^promoted://; + print TESTFILE "__typeof__ (($type) 0 + ($type) 0) a;\n"; + } else { + print TESTFILE "__typeof__ (($type) 0) a;\n"; + } print TESTFILE "extern __typeof__ ($symbol) a;\n"; close (TESTFILE); -- cgit v1.2.3-70-g09d2