2017-10-21 23:40:19 +00:00
|
|
|
/* Conformance Test 2.7.4.2: Ensure ability to define string constants */
|
|
|
|
/* across source lines */
|
2022-10-17 22:50:42 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int printf(const char *, ...);
|
|
|
|
|
|
|
|
int main (void)
|
2017-10-21 23:40:19 +00:00
|
|
|
{
|
|
|
|
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");
|
2022-10-17 22:50:42 +00:00
|
|
|
return 0;
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
Fail:
|
|
|
|
printf ("Failed Conformance Test 2.7.4.2\n");
|
|
|
|
}
|