aboutsummaryrefslogtreecommitdiff
path: root/conform
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-01 20:03:15 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-01 20:03:15 +0000
commitee74b9cbbdba4dc9e1c0532915d4f06751a6a561 (patch)
tree0045693e7187599fb441740333ad913973765675 /conform
parentaafc49b3fccb44f0da4bac49abe55fa3651ecabe (diff)
downloadglibc-ee74b9cbbdba4dc9e1c0532915d4f06751a6a561.zip
glibc-ee74b9cbbdba4dc9e1c0532915d4f06751a6a561.tar.gz
glibc-ee74b9cbbdba4dc9e1c0532915d4f06751a6a561.tar.bz2
conformtest: Support specifying types before promotion.
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index f5860ac..2d8cfd7 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);