2 The lestes compiler suite
3 Copyright (C) 2002, 2003, 2004, 2005 Miroslav Tichy
4 Copyright (C) 2002, 2003, 2004, 2005 Petr Zika
5 Copyright (C) 2002, 2003, 2004, 2005 Vojtech Hala
6 Copyright (C) 2002, 2003, 2004, 2005 Jiri Kosina
7 Copyright (C) 2002, 2003, 2004, 2005 Pavel Sanda
8 Copyright (C) 2002, 2003, 2004, 2005 Jan Zouhar
9 Copyright (C) 2002, 2003, 2004, 2005 Rudolf Thomas
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; version 2 of the License.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 See the full text of the GNU General Public License version 2, and
21 the limitations in the file doc/LICENSE.
23 By accepting the license the licensee waives any and all claims
24 against the copyright holder(s) related in whole or in part to the
25 work, its use, and/or the inability to use it.
29 * Example demonstrating as->ss expressions transformation and overload resolution, specifically
30 * for the postfix and prefix ++ and -- operators for integers and pointers.
32 * This example is intended to fail. It demonstrates, that result of postfix ++/-- is
33 * rvalue (as requested by [13.6/3,4] for non-pointer types and [13.6/5] for pointers
34 * and therefore can't be used in further expressions, requiring lvalue.
36 * Variants that must fail: