diff options
author | Neil Booth <neil@gcc.gnu.org> | 2000-10-28 18:01:40 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-10-28 18:01:40 +0000 |
commit | 74f215d7e03e8d954412f872cf6f10ceeb8626f1 (patch) | |
tree | 8d48c96b0a801722146a2653cfbd2d9cf446bad2 /gcc/testsuite/gcc.dg/cpp/paste2.c | |
parent | 93c80368d9a16c073f2b930bef4232661971765f (diff) | |
download | gcc-74f215d7e03e8d954412f872cf6f10ceeb8626f1.zip gcc-74f215d7e03e8d954412f872cf6f10ceeb8626f1.tar.gz gcc-74f215d7e03e8d954412f872cf6f10ceeb8626f1.tar.bz2 |
19960224-2.c, [...]: Update tests for new diagnostic messages.
* gcc.dg/cpp/19960224-2.c, 20000625-2.c, cxxcom2.c, directiv.c,
endif.c, if-4.c, if-5.c, if-mop.c, macsyntx.c, paste2.c, paste6.c,
paste8.c, redef2.c, strify2.c, strp1.c, tr-warn1.c, tr-warn3.c,
tr-warn6.c, undef1.c, undef2.c, widestr1.c: Update tests for
new diagnostic messages.
* gcc.dg/cpp/macro3.c: New tests.
From-SVN: r37099
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/paste2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/paste2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/paste2.c b/gcc/testsuite/gcc.dg/cpp/paste2.c index adb70b5..9721856 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste2.c +++ b/gcc/testsuite/gcc.dg/cpp/paste2.c @@ -56,8 +56,8 @@ int main () err ("Operator >> pasting"); /* The LHS should not attempt to expand twice, and thus becomes a - call to the function glue, but the RHS should fully expand. */ - if (glue (gl, ue) (12) != glue (xgl, ue) (1, 2)) + call to the function glue. */ + if (glue (gl, ue) (12) != 12) err ("Recursive macros"); /* Test placemarker pasting. The glued lines should all appear @@ -106,6 +106,8 @@ int main () err ("Various operator pasting"); if (strcmp (hh, "%:%:")) err ("Pasted digraph spelling"); + /* glue3 here will only work if we paste left-to-right. If a + future implementation does not do this, change the test. */ if ((glue (., 0) glue (=, =) .0) + (glue3 (1.0e, +, 1) == 10.0) != 2) err ("Pasted numbers"); } |