diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-28 18:01:40 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-28 18:01:40 +0000 |
commit | eee954bf975cf742e7651840d069fa4ce94ddb7e (patch) | |
tree | 8d48c96b0a801722146a2653cfbd2d9cf446bad2 /gcc/testsuite/gcc.dg/cpp/paste2.c | |
parent | 79bd622b1c2d25fb1e8d671a87c2d6157d249628 (diff) | |
download | gcc-eee954bf975cf742e7651840d069fa4ce94ddb7e.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37099 138bc75d-0d04-0410-961f-82ee72b054a4
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 adb70b5e8e1..97218565f5b 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"); } |