|
Last change
on this file since 953 was 765, checked in by bird, 22 years ago |
|
Initial testcase.
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | /* $Id: dbgpack.c 765 2003-09-30 18:51:48Z bird $ */
|
|---|
| 2 | /** @file
|
|---|
| 3 | *
|
|---|
| 4 | * Testcase for /DBGPACK.
|
|---|
| 5 | * We're just forcing a bunch of HLL types in dbgpack.c most of which will
|
|---|
| 6 | * not occure in dbgpack_2.c. rdrdump will show the same typetable for
|
|---|
| 7 | * both dbgpack.c and dbgpack_2.c if the packing works. (I.e. it dumps the
|
|---|
| 8 | * global type table.) If it doesn't work dbgpack.c will have a lot more
|
|---|
| 9 | * types in it's table thank dbgpack_2.c.
|
|---|
| 10 | *
|
|---|
| 11 | *
|
|---|
| 12 | * InnoTek Systemberatung GmbH confidential
|
|---|
| 13 | *
|
|---|
| 14 | * Copyright (c) 2003 InnoTek Systemberatung GmbH
|
|---|
| 15 | * Author: knut st. osmundsen <bird-srcspam@anduin.net>
|
|---|
| 16 | *
|
|---|
| 17 | * All Rights Reserved
|
|---|
| 18 | *
|
|---|
| 19 | */
|
|---|
| 20 | #define INCL_BASE
|
|---|
| 21 | #include <os2.h>
|
|---|
| 22 | #include <stdio.h>
|
|---|
| 23 | #include <stdlib.h>
|
|---|
| 24 | #include <string.h>
|
|---|
| 25 | #include <errno.h>
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | extern const char * foo(void);
|
|---|
| 29 | extern int gfFlag;
|
|---|
| 30 |
|
|---|
| 31 | const char * bar(void)
|
|---|
| 32 | {
|
|---|
| 33 | /* This isn't supposed to make sense btw. ;) */
|
|---|
| 34 | PFILEFINDBUF3 pfst3 = NULL;
|
|---|
| 35 | if (gfFlag && DosOpen && DosClose && !pfst3)
|
|---|
| 36 | return "set";
|
|---|
| 37 | return "clear";
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | int main()
|
|---|
| 41 | {
|
|---|
| 42 | if (strcmp(foo(), "set"))
|
|---|
| 43 | return 0;
|
|---|
| 44 | return 1;
|
|---|
| 45 | }
|
|---|
| 46 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.