source: trunk/testcase/456/boolparam.cpp@ 1456

Last change on this file since 1456 was 824, checked in by bird, 22 years ago

Correct copyright.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 845 bytes
Line 
1/* $Id: boolparam.cpp 824 2003-10-08 19:30:03Z bird $ */
2/** @file
3 *
4 * GCC does weird stuff in respect to the C++ bool type when passed as
5 * a parameter. In this testcsae we should see the values changing in
6 * variable monitor. The bool variables should be represented as if
7 * enums with values true or false.
8 *
9 * InnoTek Systemberatung GmbH confidential
10 *
11 * Copyright (c) 2003 InnoTek Systemberatung GmbH
12 * Author: knut st. osmundsen <[email protected]>
13 *
14 * All Rights Reserved
15 */
16
17#ifdef __IBMCPP__
18typedef char bool;
19#define false 0
20#define true 1
21#endif
22
23bool foo(bool f1, bool f2)
24{