home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / c-runtime / tests / RCS / ConfuseMore.m,v < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.8 KB  |  119 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     dglattin:1.1; strict;
  6. comment    @# @;
  7.  
  8.  
  9. 1.1
  10. date    92.08.18.04.58.04;    author dglattin;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @test code.
  17. @
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#include  <ConfuseMore.h>
  26. #include  <stdio.h>
  27. #include  <objc.h>
  28. #include  <objc-proto.h>
  29.  
  30.  
  31. @@implementation SubClass1 (Fifth_Test)
  32.  
  33. - additionalMethod1 /* Intentional conflict. */ {
  34.  
  35.   printf( "a message from %s, %s, Fifth_Test category.\n",
  36.     [ self name ], sel_getName (_cmd));
  37.   return self;
  38. }
  39.  
  40. - additionalMethod_2 {
  41.  
  42.   printf( "a message from %s, %s, Fifth_Test category.\n",
  43.     [ self name ], sel_getName (_cmd));
  44.   return self;
  45. }
  46.  
  47.  
  48. @@end
  49.  
  50.  
  51. @@implementation SubClass2 (Third_Test)
  52.  
  53. - additionalMethod_1 {
  54.  
  55.   printf( "a message from %s, %s, Third_Test category.\n",
  56.     [ self name ], sel_getName (_cmd));
  57.   return self;
  58. }
  59.  
  60. - additionalMethod_2 {
  61.  
  62.   printf( "a message from %s, %s, Third_Test category.\n",
  63.     [ self name ], sel_getName (_cmd));
  64.   return self;
  65. }
  66.  
  67. - additionalMethod_3 {
  68.  
  69.   printf( "a message from %s, %s, Third_Test category.\n",
  70.     [ self name ], sel_getName (_cmd));
  71.   return self;
  72. }
  73.  
  74.  
  75. @@end
  76.  
  77.  
  78. @@implementation SubClass3 (Second_Test)
  79.  
  80. + additionalClassMethodTwo {
  81.  
  82.   printf( "a message from %s, %s, Second_Test category.\n",
  83.     class_getClassName( self ), sel_getName (_cmd));
  84.   return self;
  85. }
  86.  
  87. - additionalMethod_1a {
  88.  
  89.   printf( "a message from %s, %s, Second_Test category.\n",
  90.     [ self name ], sel_getName (_cmd));
  91.   return self;
  92. }
  93.  
  94. - additionalMethod_2a {
  95.  
  96.   printf( "a message from %s, %s, Second_Test category.\n",
  97.     [ self name ], sel_getName (_cmd));
  98.   return self;
  99. }
  100.  
  101.  
  102. @@end
  103.  
  104.  
  105. @@implementation SubClass1 (Sixth_Test)
  106.  
  107. - additionalMethod_3 {
  108.  
  109.   printf( "a message from %s, %s, Sixth_Test category.\n",
  110.     [ self name ], sel_getName (_cmd));
  111.   return self;
  112. }
  113.  
  114.  
  115. @@end
  116.  
  117.  
  118. @
  119.