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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
strpbrk.c
blob
318e3a4977f229a99277f9715d54b0e2405162d9
1
// RUN: %clang %s -o %t && %run %t 2>&1
2
3
#include <assert.h>
4
#include <string.h>
5
6
7
int
main
(
int
argc
,
char
**
argv
) {
8
char
*
r
=
0
;
9
char
s1
[] =
"ad"
;
10
char
s2
[] =
"cd"
;
11
r
=
strpbrk
(
s1
,
s2
);
12
assert
(
r
==
s1
+
1
);
13
return
0
;
14
}