Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / scanf-ldbl.c
bloba38f34a245faebafec0158f93cdaa7ddf6ef856d
1 // RUN: %clang %s -o %t && %run %t 2>&1
3 // Issue #41838
4 // XFAIL: sparc-target-arch && target={{.*solaris.*}}
6 #include <assert.h>
7 #include <stdio.h>
8 #include <string.h>
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;