Last change
on this file since 1241 was 1241, checked in by bird, 22 years ago |
early coding.
|
-
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.1 KB
|
Line | |
---|
1 | /* $Id: weak4-main.c 1241 2004-02-15 07:11:01Z bird $ */
|
---|
2 | /** @file
|
---|
3 | *
|
---|
4 | * Testcase for #905 checking that all types of weak symbols
|
---|
5 | * is fixed up correctly when a displacement used specified.
|
---|
6 | *
|
---|
7 | * InnoTek Systemberatung GmbH confidential
|
---|
8 | *
|
---|
9 | * Copyright (c) 2004 InnoTek Systemberatung GmbH
|
---|
10 | * Author: knut st. osmundsen <bird-srcspam@anduin.net>
|
---|
11 | *
|
---|
12 | * All Rights Reserved
|
---|
13 | *
|
---|
14 | */
|
---|
15 |
|
---|
16 | extern int doasm(void);
|
---|
17 |
|
---|
18 | int weakundef[10] = {0,1,2,3,4,5,6,7,8,9};
|
---|
19 | extern int weakbss[10];
|
---|
20 |
|
---|
21 | int main()
|
---|
22 | {
|
---|
23 | int i;
|
---|
24 | int rcRet = 0;
|
---|
25 | for (i = 0; i < 10; i++)
|
---|
26 | weakbss[i] = i;
|
---|
27 |
|
---|
28 | if (check_weaktext())
|
---|
29 | {
|
---|
30 | printf("weak4: weaktext failed\n");
|
---|
31 | rcRet++;
|
---|
32 | }
|
---|
33 |
|
---|
34 | if (check_weakdata())
|
---|
35 | {
|
---|
36 | printf("weak4: weakdata failed\n");
|
---|
37 | rcRet++;
|
---|
38 | }
|
---|
39 |
|
---|
40 | if (check_weakbss())
|
---|
41 | {
|
---|
42 | printf("weak4: weakbss failed\n");
|
---|
43 | rcRet++;
|
---|
44 | }
|
---|
45 |
|
---|
46 | if (check_weakundef())
|
---|
47 | {
|
---|
48 | printf("weak4: weakundef failed\n");
|
---|
49 | rcRet++;
|
---|
50 | }
|
---|
51 |
|
---|
52 | if (check_weakabs())
|
---|
53 | {
|
---|
54 | printf("weak4: weakabs failed\n");
|
---|
55 | rcRet++;
|
---|
56 | }
|
---|
57 |
|
---|
58 | if (!rcRet)
|
---|
59 | printf("weak4: success\n");
|
---|
60 | else
|
---|
61 | printf("weak4: %d failures\n", rcRet);
|
---|
62 |
|
---|
63 | return rcRet;
|
---|
64 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.