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
/
strspn.c
blob
a9a24305c6f1d6dc2c91784c617313bbbc813242
1
// RUN: %clang %s -o %t && %run %t 2>&1
2
3
#include <assert.h>
4
#include <string.h>
5
6
int
main
(
int
argc
,
char
**
argv
) {
7
size_t
r
;
8
char
s1
[] =
"ab"
;
9
char
s2
[] =
"ac"
;
10
r
=
strspn
(
s1
,
s2
);
11
assert
(
r
==
1
);
12
return
0
;
13
}