Add several tests to test printf of various configurations.

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
Dan Gohman 5 years ago
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,8 @@
#include <stdio.h>
volatile int x = 42;
int main(void) {
printf("the answer is %d\n", x);
return 0;
}

@ -0,0 +1,8 @@
#include <stdio.h>
volatile double x = 42.0;
int main(void) {
printf("the answer is %f\n", x);
return 0;
}
Loading…
Cancel
Save