repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
strcasestr.c
blob
8831977569b84a48f78f45ab7f52cab9faa4247f
1
// RUN: %clang %s -o %t && %run %t 2>&1
2
3
// There's no interceptor for strcasestr on Windows
4
// XFAIL: target={{.*windows-msvc.*}}
5
6
#define _GNU_SOURCE
7
#include <assert.h>
8
#include <string.h>
9
int
main
(
int
argc
,
char
**
argv
) {
10
char
*
r
=
0
;
11
char
s1
[] =
"aB"
;
12
char
s2
[] =
"b"
;
13
r
=
strcasestr
(
s1
,
s2
);
14
assert
(
r
==
s1
+
1
);
15
return
0
;
16
}