blob: 61e7fdae2554b32f11620e216877aa9a2d382869 [file] [log] [blame]
// RUN: test.sh -p -t %t %s
#include <string.h>
#include <locale.h>
#include <assert.h>
// Example of the correct usage of strcoll().
int main()
{
char s1[] = "s1";
char s2[] = "s2";
setlocale(LC_ALL, "C");
int result;
result = strcoll(&s1[0], &s2[0]);
assert(result < 0);
return 0;
}