Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / objc / execute / string3.m
blob442952478b7fa519b8e4e3f00a3fedfcb1156848
1 /* Based on a test case contributed by Nicola Pero.  */
3 #include <string.h>
4 #include <stdlib.h>
6 #ifdef __NEXT_RUNTIME__
7 #include "next_mapping.h"
8 #else
9 #include <objc/NXConstStr.h>
10 #endif
12 #define STRING "this is a string"
14 int main (int argc, void **args)
16   if (strcmp ([@STRING cString], STRING))
17     abort ();
18   return 0;