14 lines · c
1// RUN: %clang %s -o %t && %run %t 2>&12 3#include <assert.h>4#include <stdio.h>5#include <string.h>6 7int main(int argc, char **argv) {8 long double ld;9 memset(&ld, 255, sizeof ld);10 sscanf("4.0", "%Lf", &ld);11 assert(ld == 4.0);12 return 0;13}14