repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
objc
/
execute
/
string1.m
blob
58a603c1f1f9348753160069b7ec89a473df1348
1
/* Based on a test case contributed by Nicola Pero. */
2
3
#include <string.h>
4
#include <stdlib.h>
5
6
#ifdef __NEXT_RUNTIME__
7
#import <Foundation/NSString.h>
8
#else
9
#include <objc/NXConstStr.h>
10
#endif
11
12
int main(int argc, void **args)
13
{
14
if (strcmp ([@"this is a string" cString], "this is a string"))
15
abort ();
16
return 0;
17
}