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
[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
strstr.c
blob
2089ac7b5fcbd3ff0c6ae91533799b0883845a64
1
// RUN: %clang %s -o %t && %run %t 2>&1
2
3
#include <assert.h>
4
#include <string.h>
5
int
main
(
int
argc
,
char
**
argv
) {
6
char
*
r
=
0
;
7
char
s1
[] =
"ab"
;
8
char
s2
[] =
"b"
;
9
r
=
strstr
(
s1
,
s2
);
10
assert
(
r
==
s1
+
1
);
11
return
0
;
12
}