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(s: &ld, c: 255, n: sizeof ld); |
13 | sscanf(s: "4.0", format: "%Lf", &ld); |
14 | assert(ld == 4.0); |
15 | return 0; |
16 | } |
17 |