diff options
author | Tom Tromey <tromey@redhat.com> | 2008-07-27 01:58:01 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-07-27 01:58:01 +0000 |
commit | ccb3ac8a121682a5fc5fd767f80872ef3e5c7b47 (patch) | |
tree | 901a10344c9f3703b079daac6713d2485aca07c4 /gdb/testsuite/gdb.base/macscp.exp | |
parent | d27eff1ca45cabcb6c0dfa01d3d31ee6abf1d383 (diff) | |
download | gdb-ccb3ac8a121682a5fc5fd767f80872ef3e5c7b47.zip gdb-ccb3ac8a121682a5fc5fd767f80872ef3e5c7b47.tar.gz gdb-ccb3ac8a121682a5fc5fd767f80872ef3e5c7b47.tar.bz2 |
gdb:
PR gdb/1136:
* macroexp.c (get_punctuator) <punctuators>: Rearrange to put
longer tokens first.
gdb/testsuite:
* gdb.base/macscp.exp: Add test for macro lexing bug.
Diffstat (limited to 'gdb/testsuite/gdb.base/macscp.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/macscp.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp index 90c2d95..15d3f2f 100644 --- a/gdb/testsuite/gdb.base/macscp.exp +++ b/gdb/testsuite/gdb.base/macscp.exp @@ -472,3 +472,8 @@ gdb_test "macro undef M" \ gdb_test "print M" \ "No symbol \"M\" in current context\." \ "print expression with macro after user undef." + +# Regression test; this used to emit the wrong error. +gdb_test "macro expand SPLICE(x, y)" \ + "Token splicing is not implemented yet." \ + "macro splicing lexes correctly" |