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
/
scanf-ldbl.c
blob
a38f34a245faebafec0158f93cdaa7ddf6ef856d
1
// RUN: %clang %s -o %t && %run %t 2>&1
2
3
// Issue #41838
4
// XFAIL: sparc-target-arch && target={{.*solaris.*}}
5
6
#include <assert.h>
7
#include <stdio.h>
8
#include <string.h>
9
10
int
main
(
int
argc
,
char
**
argv
) {
11
long double
ld
;
12
memset
(&
ld
,
255
,
sizeof
ld
);
13
sscanf
(
"4.0"
,
"%Lf"
, &
ld
);
14
assert
(
ld
==
4.0
);
15
return
0
;
16
}