Skip to content

Commit 554ffe2

Browse files
committed
Test parsing of C standard library
1 parent 3d8b4fd commit 554ffe2

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

tests/unit_tests/parser/c_stdlib.c

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// RUN: %cxx -toolchain wasm32 -verify -xc -U__cplusplus -D__STDC_VERSION__=202311L %s
2+
3+
#include <assert.h>
4+
#include <complex.h>
5+
#include <ctype.h>
6+
#include <errno.h>
7+
#include <fenv.h>
8+
#include <float.h>
9+
#include <inttypes.h>
10+
#include <iso646.h>
11+
#include <limits.h>
12+
#include <locale.h>
13+
#include <math.h>
14+
15+
#ifndef __wasi__
16+
#include <setjmp.h>
17+
#include <signal.h>
18+
#endif
19+
20+
#include <stdalign.h>
21+
#include <stdarg.h>
22+
#include <stdatomic.h>
23+
24+
#if __has_include(<stdbit.h>)
25+
#include <stdbit.h>
26+
#endif
27+
#include <stdbool.h>
28+
29+
#if __has_include(<stdckdint.h>)
30+
#include <stdckdint.h>
31+
#endif
32+
33+
#include <stddef.h>
34+
#include <stdint.h>
35+
#include <stdio.h>
36+
#include <stdlib.h>
37+
#include <stdnoreturn.h>
38+
#include <string.h>
39+
#include <tgmath.h>
40+
41+
#if __has_include(<threads.h>)
42+
#include <threads.h>
43+
#endif
44+
45+
#include <time.h>
46+
47+
#if __has_include(<uchar.h>)
48+
#include <uchar.h>
49+
#endif
50+
51+
#include <wchar.h>
52+
#include <wctype.h>

0 commit comments

Comments
 (0)