mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-17 20:06:49 +00:00
22 lines
573 B
C++
22 lines
573 B
C++
/* Conformance Test 2.7.4.2: Ensure ability to define string constants */
|
|
/* across source lines */
|
|
main ()
|
|
{
|
|
char s[300] = "The string begins here...\
|
|
and ends here!";
|
|
|
|
if (strcmp (s, "The string begins here... and ends here!"))
|
|
goto Fail;
|
|
|
|
strcpy (s, "another spl\
|
|
it string!");
|
|
if (strcmp (s, "another spl it string!"))
|
|
goto Fail;
|
|
|
|
printf ("Passed Conformance Test 2.7.4.2\n");
|
|
return;
|
|
|
|
Fail:
|
|
printf ("Failed Conformance Test 2.7.4.2\n");
|
|
}
|