From cd5662732a9ce840e9276d18b080cd38ec1d66a5 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 6 Jan 2001 18:47:19 +0000 Subject: [PATCH] format.exp: New file. * gcc.dg/format/format.exp: New file. * gcc.dg/c90-printf-1.c: Rename to gcc.dg/format/c90-printf-1.c. * gcc.dg/c90-printf-2.c: Rename to gcc.dg/format/c90-printf-2.c. * gcc.dg/c90-printf-3.c: Rename to gcc.dg/format/c90-printf-3.c. * gcc.dg/c94-printf-1.c: Rename to gcc.dg/format/c94-printf-1.c. * gcc.dg/c99-printf-1.c: Rename to gcc.dg/format/c99-printf-1.c. * gcc.dg/c99-printf-2.c: Rename to gcc.dg/format/c99-printf-2.c. * gcc.dg/c99-printf-3.c: Rename to gcc.dg/format/c99-printf-3.c. * gcc.dg/c90-scanf-1.c: Rename to gcc.dg/format/c90-scanf-1.c. * gcc.dg/c90-scanf-2.c: Rename to gcc.dg/format/c90-scanf-2.c. * gcc.dg/c90-scanf-3.c: Rename to gcc.dg/format/c90-scanf-3.c. * gcc.dg/c90-scanf-4.c: Rename to gcc.dg/format/c90-scanf-4.c. * gcc.dg/c94-scanf-1.c: Rename to gcc.dg/format/c94-scanf-1.c. * gcc.dg/c99-scanf-1.c: Rename to gcc.dg/format/c99-scanf-1.c. * gcc.dg/c99-scanf-2.c: Rename to gcc.dg/format/c99-scanf-2.c. * gcc.dg/c99-scanf-3.c: Rename to gcc.dg/format/c99-scanf-3.c. * gcc.dg/c90-strftime-1.c: Rename to gcc.dg/format/c90-strftime-1.c. * gcc.dg/c90-strftime-2.c: Rename to gcc.dg/format/c90-strftime-2.c. * gcc.dg/c99-strftime-1.c: Rename to gcc.dg/format/c99-strftime-1.c. * gcc.dg/c99-strftime-2.c: Rename to gcc.dg/format/c99-strftime-2.c. * gcc.dg/format-array-1.c: Rename to gcc.dg/format/array-1.c. * gcc.dg/format-attr-1.c: Rename to gcc.dg/format/attr-1.c. * gcc.dg/format-branch-1.c: Rename to gcc.dg/format/branch-1.c. * gcc.dg/format-diag-1.c: Rename to gcc.dg/format/diag-1.c. * gcc.dg/format-errmk-1.c: Rename to gcc.dg/format/errmk-1.c. * gcc.dg/format-ext-1.c: Rename to gcc.dg/format/ext-1.c. * gcc.dg/format-ext-2.c: Rename to gcc.dg/format/ext-2.c. * gcc.dg/format-ext-3.c: Rename to gcc.dg/format/ext-3.c. * gcc.dg/format-ext-4.c: Rename to gcc.dg/format/ext-4.c. * gcc.dg/format-ext-5.c: Rename to gcc.dg/format/ext-5.c. * gcc.dg/format-miss-1.c: Rename to gcc.dg/format/miss-1.c. * gcc.dg/format-miss-2.c: Rename to gcc.dg/format/miss-2.c. * gcc.dg/format-no-exargs-1.c: Rename to gcc.dg/format/no-exargs-1.c. * gcc.dg/format-no-y2k-1.c: Rename to gcc.dg/format/no-y2k-1.c. * gcc.dg/format-nonlit-1.c: Rename to gcc.dg/format/nonlit-1.c. * gcc.dg/format-nonlit-2.c: Rename to gcc.dg/format/nonlit-2.c. * gcc.dg/format-nonlit-3.c: Rename to gcc.dg/format/nonlit-3.c. * gcc.dg/format-sec-1.c: Rename to gcc.dg/format/sec-1.c. * gcc.dg/format-strfmon-1.c: Rename to gcc.dg/format/strfmon-1.c. * gcc.dg/format-va-1.c: Rename to gcc.dg/format/va-1.c. * gcc.dg/format-warnll-1.c: Rename to gcc.dg/format/warnll-1.c. * gcc.dg/format-xopen-1.c: Rename to gcc.dg/format/xopen-1.c. * gcc.dg/formatz-1.c: Rename to gcc.dg/format/z-1.c. From-SVN: r38749 --- gcc/testsuite/ChangeLog | 46 ++++++++++++++ .../{format-array-1.c => format/array-1.c} | 0 .../{format-attr-1.c => format/attr-1.c} | 0 .../{format-branch-1.c => format/branch-1.c} | 0 .../gcc.dg/{ => format}/c90-printf-1.c | 0 .../gcc.dg/{ => format}/c90-printf-2.c | 0 .../gcc.dg/{ => format}/c90-printf-3.c | 0 .../gcc.dg/{ => format}/c90-scanf-1.c | 0 .../gcc.dg/{ => format}/c90-scanf-2.c | 0 .../gcc.dg/{ => format}/c90-scanf-3.c | 0 .../gcc.dg/{ => format}/c90-scanf-4.c | 0 .../gcc.dg/{ => format}/c90-strftime-1.c | 0 .../gcc.dg/{ => format}/c90-strftime-2.c | 0 .../gcc.dg/{ => format}/c94-printf-1.c | 0 .../gcc.dg/{ => format}/c94-scanf-1.c | 0 .../gcc.dg/{ => format}/c99-printf-1.c | 0 .../gcc.dg/{ => format}/c99-printf-2.c | 0 .../gcc.dg/{ => format}/c99-printf-3.c | 0 .../gcc.dg/{ => format}/c99-scanf-1.c | 0 .../gcc.dg/{ => format}/c99-scanf-2.c | 0 .../gcc.dg/{ => format}/c99-scanf-3.c | 0 .../gcc.dg/{ => format}/c99-strftime-1.c | 0 .../gcc.dg/{ => format}/c99-strftime-2.c | 0 .../{format-diag-1.c => format/diag-1.c} | 0 .../{format-errmk-1.c => format/errmk-1.c} | 0 .../gcc.dg/{format-ext-1.c => format/ext-1.c} | 0 .../gcc.dg/{format-ext-2.c => format/ext-2.c} | 0 .../gcc.dg/{format-ext-3.c => format/ext-3.c} | 0 .../gcc.dg/{format-ext-4.c => format/ext-4.c} | 0 .../gcc.dg/{format-ext-5.c => format/ext-5.c} | 0 gcc/testsuite/gcc.dg/format/format.exp | 61 +++++++++++++++++++ .../{format-miss-1.c => format/miss-1.c} | 0 .../{format-miss-2.c => format/miss-2.c} | 0 .../no-exargs-1.c} | 0 .../{format-no-y2k-1.c => format/no-y2k-1.c} | 0 .../{format-nonlit-1.c => format/nonlit-1.c} | 0 .../{format-nonlit-2.c => format/nonlit-2.c} | 0 .../{format-nonlit-3.c => format/nonlit-3.c} | 0 .../gcc.dg/{format-sec-1.c => format/sec-1.c} | 0 .../strfmon-1.c} | 0 .../gcc.dg/{format-va-1.c => format/va-1.c} | 0 .../{format-warnll-1.c => format/warnll-1.c} | 0 .../{format-xopen-1.c => format/xopen-1.c} | 0 .../gcc.dg/{formatz-1.c => format/z-1.c} | 0 44 files changed, 107 insertions(+) rename gcc/testsuite/gcc.dg/{format-array-1.c => format/array-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-attr-1.c => format/attr-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-branch-1.c => format/branch-1.c} (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-printf-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-printf-2.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-printf-3.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-scanf-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-scanf-2.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-scanf-3.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-scanf-4.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-strftime-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c90-strftime-2.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c94-printf-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c94-scanf-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-printf-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-printf-2.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-printf-3.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-scanf-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-scanf-2.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-scanf-3.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-strftime-1.c (100%) rename gcc/testsuite/gcc.dg/{ => format}/c99-strftime-2.c (100%) rename gcc/testsuite/gcc.dg/{format-diag-1.c => format/diag-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-errmk-1.c => format/errmk-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-ext-1.c => format/ext-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-ext-2.c => format/ext-2.c} (100%) rename gcc/testsuite/gcc.dg/{format-ext-3.c => format/ext-3.c} (100%) rename gcc/testsuite/gcc.dg/{format-ext-4.c => format/ext-4.c} (100%) rename gcc/testsuite/gcc.dg/{format-ext-5.c => format/ext-5.c} (100%) create mode 100644 gcc/testsuite/gcc.dg/format/format.exp rename gcc/testsuite/gcc.dg/{format-miss-1.c => format/miss-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-miss-2.c => format/miss-2.c} (100%) rename gcc/testsuite/gcc.dg/{format-no-exargs-1.c => format/no-exargs-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-no-y2k-1.c => format/no-y2k-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-nonlit-1.c => format/nonlit-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-nonlit-2.c => format/nonlit-2.c} (100%) rename gcc/testsuite/gcc.dg/{format-nonlit-3.c => format/nonlit-3.c} (100%) rename gcc/testsuite/gcc.dg/{format-sec-1.c => format/sec-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-strfmon-1.c => format/strfmon-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-va-1.c => format/va-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-warnll-1.c => format/warnll-1.c} (100%) rename gcc/testsuite/gcc.dg/{format-xopen-1.c => format/xopen-1.c} (100%) rename gcc/testsuite/gcc.dg/{formatz-1.c => format/z-1.c} (100%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e02464653b7..2ca4f175884 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,49 @@ +2001-01-06 Joseph S. Myers + + * gcc.dg/format/format.exp: New file. + * gcc.dg/c90-printf-1.c: Rename to gcc.dg/format/c90-printf-1.c. + * gcc.dg/c90-printf-2.c: Rename to gcc.dg/format/c90-printf-2.c. + * gcc.dg/c90-printf-3.c: Rename to gcc.dg/format/c90-printf-3.c. + * gcc.dg/c94-printf-1.c: Rename to gcc.dg/format/c94-printf-1.c. + * gcc.dg/c99-printf-1.c: Rename to gcc.dg/format/c99-printf-1.c. + * gcc.dg/c99-printf-2.c: Rename to gcc.dg/format/c99-printf-2.c. + * gcc.dg/c99-printf-3.c: Rename to gcc.dg/format/c99-printf-3.c. + * gcc.dg/c90-scanf-1.c: Rename to gcc.dg/format/c90-scanf-1.c. + * gcc.dg/c90-scanf-2.c: Rename to gcc.dg/format/c90-scanf-2.c. + * gcc.dg/c90-scanf-3.c: Rename to gcc.dg/format/c90-scanf-3.c. + * gcc.dg/c90-scanf-4.c: Rename to gcc.dg/format/c90-scanf-4.c. + * gcc.dg/c94-scanf-1.c: Rename to gcc.dg/format/c94-scanf-1.c. + * gcc.dg/c99-scanf-1.c: Rename to gcc.dg/format/c99-scanf-1.c. + * gcc.dg/c99-scanf-2.c: Rename to gcc.dg/format/c99-scanf-2.c. + * gcc.dg/c99-scanf-3.c: Rename to gcc.dg/format/c99-scanf-3.c. + * gcc.dg/c90-strftime-1.c: Rename to gcc.dg/format/c90-strftime-1.c. + * gcc.dg/c90-strftime-2.c: Rename to gcc.dg/format/c90-strftime-2.c. + * gcc.dg/c99-strftime-1.c: Rename to gcc.dg/format/c99-strftime-1.c. + * gcc.dg/c99-strftime-2.c: Rename to gcc.dg/format/c99-strftime-2.c. + * gcc.dg/format-array-1.c: Rename to gcc.dg/format/array-1.c. + * gcc.dg/format-attr-1.c: Rename to gcc.dg/format/attr-1.c. + * gcc.dg/format-branch-1.c: Rename to gcc.dg/format/branch-1.c. + * gcc.dg/format-diag-1.c: Rename to gcc.dg/format/diag-1.c. + * gcc.dg/format-errmk-1.c: Rename to gcc.dg/format/errmk-1.c. + * gcc.dg/format-ext-1.c: Rename to gcc.dg/format/ext-1.c. + * gcc.dg/format-ext-2.c: Rename to gcc.dg/format/ext-2.c. + * gcc.dg/format-ext-3.c: Rename to gcc.dg/format/ext-3.c. + * gcc.dg/format-ext-4.c: Rename to gcc.dg/format/ext-4.c. + * gcc.dg/format-ext-5.c: Rename to gcc.dg/format/ext-5.c. + * gcc.dg/format-miss-1.c: Rename to gcc.dg/format/miss-1.c. + * gcc.dg/format-miss-2.c: Rename to gcc.dg/format/miss-2.c. + * gcc.dg/format-no-exargs-1.c: Rename to gcc.dg/format/no-exargs-1.c. + * gcc.dg/format-no-y2k-1.c: Rename to gcc.dg/format/no-y2k-1.c. + * gcc.dg/format-nonlit-1.c: Rename to gcc.dg/format/nonlit-1.c. + * gcc.dg/format-nonlit-2.c: Rename to gcc.dg/format/nonlit-2.c. + * gcc.dg/format-nonlit-3.c: Rename to gcc.dg/format/nonlit-3.c. + * gcc.dg/format-sec-1.c: Rename to gcc.dg/format/sec-1.c. + * gcc.dg/format-strfmon-1.c: Rename to gcc.dg/format/strfmon-1.c. + * gcc.dg/format-va-1.c: Rename to gcc.dg/format/va-1.c. + * gcc.dg/format-warnll-1.c: Rename to gcc.dg/format/warnll-1.c. + * gcc.dg/format-xopen-1.c: Rename to gcc.dg/format/xopen-1.c. + * gcc.dg/formatz-1.c: Rename to gcc.dg/format/z-1.c. + 2001-01-05 Alexandre Oliva * gcc.c-torture/execute/991228-1.c: Take word endianness into diff --git a/gcc/testsuite/gcc.dg/format-array-1.c b/gcc/testsuite/gcc.dg/format/array-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-array-1.c rename to gcc/testsuite/gcc.dg/format/array-1.c diff --git a/gcc/testsuite/gcc.dg/format-attr-1.c b/gcc/testsuite/gcc.dg/format/attr-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-attr-1.c rename to gcc/testsuite/gcc.dg/format/attr-1.c diff --git a/gcc/testsuite/gcc.dg/format-branch-1.c b/gcc/testsuite/gcc.dg/format/branch-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-branch-1.c rename to gcc/testsuite/gcc.dg/format/branch-1.c diff --git a/gcc/testsuite/gcc.dg/c90-printf-1.c b/gcc/testsuite/gcc.dg/format/c90-printf-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-printf-1.c rename to gcc/testsuite/gcc.dg/format/c90-printf-1.c diff --git a/gcc/testsuite/gcc.dg/c90-printf-2.c b/gcc/testsuite/gcc.dg/format/c90-printf-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-printf-2.c rename to gcc/testsuite/gcc.dg/format/c90-printf-2.c diff --git a/gcc/testsuite/gcc.dg/c90-printf-3.c b/gcc/testsuite/gcc.dg/format/c90-printf-3.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-printf-3.c rename to gcc/testsuite/gcc.dg/format/c90-printf-3.c diff --git a/gcc/testsuite/gcc.dg/c90-scanf-1.c b/gcc/testsuite/gcc.dg/format/c90-scanf-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-scanf-1.c rename to gcc/testsuite/gcc.dg/format/c90-scanf-1.c diff --git a/gcc/testsuite/gcc.dg/c90-scanf-2.c b/gcc/testsuite/gcc.dg/format/c90-scanf-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-scanf-2.c rename to gcc/testsuite/gcc.dg/format/c90-scanf-2.c diff --git a/gcc/testsuite/gcc.dg/c90-scanf-3.c b/gcc/testsuite/gcc.dg/format/c90-scanf-3.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-scanf-3.c rename to gcc/testsuite/gcc.dg/format/c90-scanf-3.c diff --git a/gcc/testsuite/gcc.dg/c90-scanf-4.c b/gcc/testsuite/gcc.dg/format/c90-scanf-4.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-scanf-4.c rename to gcc/testsuite/gcc.dg/format/c90-scanf-4.c diff --git a/gcc/testsuite/gcc.dg/c90-strftime-1.c b/gcc/testsuite/gcc.dg/format/c90-strftime-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-strftime-1.c rename to gcc/testsuite/gcc.dg/format/c90-strftime-1.c diff --git a/gcc/testsuite/gcc.dg/c90-strftime-2.c b/gcc/testsuite/gcc.dg/format/c90-strftime-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/c90-strftime-2.c rename to gcc/testsuite/gcc.dg/format/c90-strftime-2.c diff --git a/gcc/testsuite/gcc.dg/c94-printf-1.c b/gcc/testsuite/gcc.dg/format/c94-printf-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c94-printf-1.c rename to gcc/testsuite/gcc.dg/format/c94-printf-1.c diff --git a/gcc/testsuite/gcc.dg/c94-scanf-1.c b/gcc/testsuite/gcc.dg/format/c94-scanf-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c94-scanf-1.c rename to gcc/testsuite/gcc.dg/format/c94-scanf-1.c diff --git a/gcc/testsuite/gcc.dg/c99-printf-1.c b/gcc/testsuite/gcc.dg/format/c99-printf-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-printf-1.c rename to gcc/testsuite/gcc.dg/format/c99-printf-1.c diff --git a/gcc/testsuite/gcc.dg/c99-printf-2.c b/gcc/testsuite/gcc.dg/format/c99-printf-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-printf-2.c rename to gcc/testsuite/gcc.dg/format/c99-printf-2.c diff --git a/gcc/testsuite/gcc.dg/c99-printf-3.c b/gcc/testsuite/gcc.dg/format/c99-printf-3.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-printf-3.c rename to gcc/testsuite/gcc.dg/format/c99-printf-3.c diff --git a/gcc/testsuite/gcc.dg/c99-scanf-1.c b/gcc/testsuite/gcc.dg/format/c99-scanf-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-scanf-1.c rename to gcc/testsuite/gcc.dg/format/c99-scanf-1.c diff --git a/gcc/testsuite/gcc.dg/c99-scanf-2.c b/gcc/testsuite/gcc.dg/format/c99-scanf-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-scanf-2.c rename to gcc/testsuite/gcc.dg/format/c99-scanf-2.c diff --git a/gcc/testsuite/gcc.dg/c99-scanf-3.c b/gcc/testsuite/gcc.dg/format/c99-scanf-3.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-scanf-3.c rename to gcc/testsuite/gcc.dg/format/c99-scanf-3.c diff --git a/gcc/testsuite/gcc.dg/c99-strftime-1.c b/gcc/testsuite/gcc.dg/format/c99-strftime-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-strftime-1.c rename to gcc/testsuite/gcc.dg/format/c99-strftime-1.c diff --git a/gcc/testsuite/gcc.dg/c99-strftime-2.c b/gcc/testsuite/gcc.dg/format/c99-strftime-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/c99-strftime-2.c rename to gcc/testsuite/gcc.dg/format/c99-strftime-2.c diff --git a/gcc/testsuite/gcc.dg/format-diag-1.c b/gcc/testsuite/gcc.dg/format/diag-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-diag-1.c rename to gcc/testsuite/gcc.dg/format/diag-1.c diff --git a/gcc/testsuite/gcc.dg/format-errmk-1.c b/gcc/testsuite/gcc.dg/format/errmk-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-errmk-1.c rename to gcc/testsuite/gcc.dg/format/errmk-1.c diff --git a/gcc/testsuite/gcc.dg/format-ext-1.c b/gcc/testsuite/gcc.dg/format/ext-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-ext-1.c rename to gcc/testsuite/gcc.dg/format/ext-1.c diff --git a/gcc/testsuite/gcc.dg/format-ext-2.c b/gcc/testsuite/gcc.dg/format/ext-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-ext-2.c rename to gcc/testsuite/gcc.dg/format/ext-2.c diff --git a/gcc/testsuite/gcc.dg/format-ext-3.c b/gcc/testsuite/gcc.dg/format/ext-3.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-ext-3.c rename to gcc/testsuite/gcc.dg/format/ext-3.c diff --git a/gcc/testsuite/gcc.dg/format-ext-4.c b/gcc/testsuite/gcc.dg/format/ext-4.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-ext-4.c rename to gcc/testsuite/gcc.dg/format/ext-4.c diff --git a/gcc/testsuite/gcc.dg/format-ext-5.c b/gcc/testsuite/gcc.dg/format/ext-5.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-ext-5.c rename to gcc/testsuite/gcc.dg/format/ext-5.c diff --git a/gcc/testsuite/gcc.dg/format/format.exp b/gcc/testsuite/gcc.dg/format/format.exp new file mode 100644 index 00000000000..90695fc535f --- /dev/null +++ b/gcc/testsuite/gcc.dg/format/format.exp @@ -0,0 +1,61 @@ +# Copyright (C) 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gcc@prep.ai.mit.edu + +# Don't run this directory with any default CFLAGS, but run tests with +# and without -DWIDE. + +if [info exists TORTURE_OPTIONS] { + set old_TORTURE_OPTIONS $TORTURE_OPTIONS +} elseif [info exists old_TORTURE_OPTIONS] { + unset old_TORTURE_OPTIONS +} +if [info exists torture_with_loops] { + set old_torture_with_loops $torture_with_loops +} elseif [info exists old_torture_with_loops] { + unset old_torture_with_loops +} +if [info exists torture_without_loops] { + set old_torture_without_loops $torture_without_loops +} elseif [info exists old_torture_without_loops] { + unset old_torture_without_loops +} +set TORTURE_OPTIONS [list { } { -DWIDE } ] +set torture_with_loops [list { } { -DWIDE } ] +set torture_without_loops [list { } { -DWIDE } ] + +load_lib gcc-dg.exp + +dg-init +gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "" +if [info exists old_TORTURE_OPTIONS] { + set TORTURE_OPTIONS $old_TORTURE_OPTIONS +} else { + unset TORTURE_OPTIONS +} +if [info exists old_torture_with_loops] { + set torture_with_loops $old_torture_with_loops +} else { + unset torture_with_loops +} +if [info exists old_torture_without_loops] { + set torture_without_loops $old_torture_without_loops +} else { + unset torture_without_loops +} +dg-finish diff --git a/gcc/testsuite/gcc.dg/format-miss-1.c b/gcc/testsuite/gcc.dg/format/miss-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-miss-1.c rename to gcc/testsuite/gcc.dg/format/miss-1.c diff --git a/gcc/testsuite/gcc.dg/format-miss-2.c b/gcc/testsuite/gcc.dg/format/miss-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-miss-2.c rename to gcc/testsuite/gcc.dg/format/miss-2.c diff --git a/gcc/testsuite/gcc.dg/format-no-exargs-1.c b/gcc/testsuite/gcc.dg/format/no-exargs-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-no-exargs-1.c rename to gcc/testsuite/gcc.dg/format/no-exargs-1.c diff --git a/gcc/testsuite/gcc.dg/format-no-y2k-1.c b/gcc/testsuite/gcc.dg/format/no-y2k-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-no-y2k-1.c rename to gcc/testsuite/gcc.dg/format/no-y2k-1.c diff --git a/gcc/testsuite/gcc.dg/format-nonlit-1.c b/gcc/testsuite/gcc.dg/format/nonlit-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-nonlit-1.c rename to gcc/testsuite/gcc.dg/format/nonlit-1.c diff --git a/gcc/testsuite/gcc.dg/format-nonlit-2.c b/gcc/testsuite/gcc.dg/format/nonlit-2.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-nonlit-2.c rename to gcc/testsuite/gcc.dg/format/nonlit-2.c diff --git a/gcc/testsuite/gcc.dg/format-nonlit-3.c b/gcc/testsuite/gcc.dg/format/nonlit-3.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-nonlit-3.c rename to gcc/testsuite/gcc.dg/format/nonlit-3.c diff --git a/gcc/testsuite/gcc.dg/format-sec-1.c b/gcc/testsuite/gcc.dg/format/sec-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-sec-1.c rename to gcc/testsuite/gcc.dg/format/sec-1.c diff --git a/gcc/testsuite/gcc.dg/format-strfmon-1.c b/gcc/testsuite/gcc.dg/format/strfmon-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-strfmon-1.c rename to gcc/testsuite/gcc.dg/format/strfmon-1.c diff --git a/gcc/testsuite/gcc.dg/format-va-1.c b/gcc/testsuite/gcc.dg/format/va-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-va-1.c rename to gcc/testsuite/gcc.dg/format/va-1.c diff --git a/gcc/testsuite/gcc.dg/format-warnll-1.c b/gcc/testsuite/gcc.dg/format/warnll-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-warnll-1.c rename to gcc/testsuite/gcc.dg/format/warnll-1.c diff --git a/gcc/testsuite/gcc.dg/format-xopen-1.c b/gcc/testsuite/gcc.dg/format/xopen-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/format-xopen-1.c rename to gcc/testsuite/gcc.dg/format/xopen-1.c diff --git a/gcc/testsuite/gcc.dg/formatz-1.c b/gcc/testsuite/gcc.dg/format/z-1.c similarity index 100% rename from gcc/testsuite/gcc.dg/formatz-1.c rename to gcc/testsuite/gcc.dg/format/z-1.c