Changeset 1191 for trunk/testcase/weak/weak2-main.c
- Timestamp:
- Feb 6, 2004, 11:06:31 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/weak/weak2-main.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1190 r1191 11 11 #pragma weak weak_not_defined 12 12 13 extern int weak_defined(void); 14 #pragma weak weak_not_defined 15 13 16 int main() 14 17 { … … 19 22 if (i != 1) 20 23 { 21 printf("foo() returned %d, ex epcted 1\n", i);24 printf("foo() returned %d, expected 1\n", i); 22 25 cErrors++; 23 26 } … … 26 29 if (i != 1) 27 30 { 28 printf("foo3() returned %d, ex epcted 1\n", i);31 printf("foo3() returned %d, expected 1\n", i); 29 32 cErrors++; 30 33 } … … 33 36 if (i != -1) 34 37 { 35 printf("foo4() returned %d, ex epcted -1\n", i);38 printf("foo4() returned %d, expected -1\n", i); 36 39 cErrors++; 37 40 } … … 40 43 if (i != 1) 41 44 { 42 printf("foo5() returned %d, ex epcted 1\n", i);45 printf("foo5() returned %d, expected 1\n", i); 43 46 cErrors++; 44 47 } … … 47 50 if (i != 12) 48 51 { 49 printf("foo6() returned %d, ex epcted 12\n", i);52 printf("foo6() returned %d, expected 12\n", i); 50 53 cErrors++; 51 54 } … … 54 57 if (i != 21) 55 58 { 56 printf("bar sum is %d ex epcted 21\n", i);59 printf("bar sum is %d expected 21\n", i); 57 60 cErrors++; 58 61 } … … 60 63 if (weak_not_defined) 61 64 { 62 printf("weak_not_defined %#p exepcted NULL\n", weak_not_defined); 65 printf("weak_not_defined %#p expected NULL\n", weak_not_defined); 66 cErrors++; 67 } 68 69 if (!weak_defined) 70 { 71 printf("weak_not_defined %#p expected non-zero\n", weak_defined); 63 72 cErrors++; 64 73 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.