| 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__
|
|---|
| 18 | typedef char bool;
|
|---|
| 19 | #define false 0
|
|---|
| 20 | #define true 1
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | bool foo(bool f1, bool f2)
|
|---|
| 24 | {
|
|---|
|
|---|