diff options
author | tlaurenzo <tlaurenzo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-11 01:34:02 +0000 |
---|---|---|
committer | tlaurenzo <tlaurenzo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-11 01:34:02 +0000 |
commit | 4c8420c9b081e5e11b17aad8495674196307bf76 (patch) | |
tree | d3a6af3b149154654e7557325e0a2d26a3b83556 /libiberty/testsuite/test-demangle.c | |
parent | 169164630a30180d2b6a962d7094474d0a601ff2 (diff) | |
download | gcc-4c8420c9b081e5e11b17aad8495674196307bf76.tar.gz |
Fixes java/PR9861
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108374 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/testsuite/test-demangle.c')
-rw-r--r-- | libiberty/testsuite/test-demangle.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c index dcb27d259d4..93793996fe0 100644 --- a/libiberty/testsuite/test-demangle.c +++ b/libiberty/testsuite/test-demangle.c @@ -114,6 +114,7 @@ exp: %s\n", --is-v3-ctor Calls is_gnu_v3_mangled_ctor on input; expected output is an integer representing ctor_kind. --is-v3-dtor Likewise, but for dtors. + --ret-postfix Passes the DMGL_RET_POSTFIX option For compatibility, just in case it matters, the options line may be empty, to mean --format=auto. If it doesn't start with --, then it @@ -129,6 +130,7 @@ main(argc, argv) int no_params; int is_v3_ctor; int is_v3_dtor; + int ret_postfix; struct line format; struct line input; struct line expect; @@ -158,6 +160,7 @@ main(argc, argv) tests++; no_params = 0; + ret_postfix = 0; is_v3_ctor = 0; is_v3_dtor = 0; if (format.data[0] == '\0') @@ -212,6 +215,8 @@ main(argc, argv) is_v3_ctor = 1; else if (strcmp (opt, "--is-v3-dtor") == 0) is_v3_dtor = 1; + else if (strcmp (opt, "--ret-postfix") == 0) + ret_postfix = 1; else { printf ("FAIL at line %d: unrecognized option %s\n", @@ -255,7 +260,8 @@ main(argc, argv) cplus_demangle_set_style (style); result = cplus_demangle (input.data, - DMGL_PARAMS|DMGL_ANSI|DMGL_TYPES); + DMGL_PARAMS|DMGL_ANSI|DMGL_TYPES + |(ret_postfix ? DMGL_RET_POSTFIX : 0)); if (result ? strcmp (result, expect.data) |