summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc/execute/string3.m
blob: 2595a09c19a198561936e63229a6b061cb6f56b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Based on a test case contributed by Nicola Pero.  */

#import "../../objc-obj-c++-shared/next-mapping.h"
#include <string.h>
#include <stdlib.h>

#ifndef __NEXT_RUNTIME__
#include <objc/NXConstStr.h>
#endif

#define STRING "this is a string"

int main (int argc, void **args)
{
  if (strcmp ([@STRING cString], STRING))
    abort ();
  return 0;
}