mirror of https://github.com/WebAssembly/wasi-sdk
wasi-libc builds special versions of printf and other routines optimized for the case where long double and floating-point in general are not needed. Ensure that everything still compiles and runs.pull/100/head
parent
51abbf27ae
commit
a6c0a9b3a4
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
volatile long double x = 42.0L;
|
||||
|
||||
int main(void) {
|
||||
printf("the answer is %Lf\n", x);
|
||||
return 0;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
volatile long double x = 42.0L;
|
||||
|
||||
int main(void) {
|
||||
printf("the answer is %Lf\n", x);
|
||||
return 0;
|
||||
}
|
@ -0,0 +1 @@
|
||||
-lc-printscan-long-double
|
@ -0,0 +1 @@
|
||||
the answer is 42.000000
|
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
volatile int x = 42;
|
||||
|
||||
int main(void) {
|
||||
printf("the answer is %d\n", x);
|
||||
return 0;
|
||||
}
|
@ -0,0 +1 @@
|
||||
the answer is 42
|
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
volatile double x = 42.0;
|
||||
|
||||
int main(void) {
|
||||
printf("the answer is %f\n", x);
|
||||
return 0;
|
||||
}
|
@ -0,0 +1 @@
|
||||
the answer is 42.000000
|
Loading…
Reference in new issue