-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathtest.c
More file actions
26 lines (19 loc) · 776 Bytes
/
test.c
File metadata and controls
26 lines (19 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdalign.h> //COMPLIANT
#include <stdatomic.h> //COMPLIANT
#include <stdnoreturn.h> //COMPLIANT
#include <threads.h> //COMPLIANT
#define MACRO(x) _Generic((x), int : 0, long : 1) // COMPLIANT
#define __STDC_WANT_LIB_EXT1__ 1 // NON_COMPLIANT
_Noreturn void f0(); // COMPLIANT
typedef int new_type; // COMPLIANT
typedef _Atomic new_type atomic_new_type; // COMPLIANT
void f(int p) {
int i0 = _Generic(p, int : 0, long : 1); // COMPLIANT
_Atomic int i; // NON-COMPLIANT
_Alignas(4) int i1; // COMPLIANT
alignas(4) int i2; // COMPLIANT
int a = _Alignof(int); // COMPLIANT
int a1 = alignof(int); // COMPLIANT
static thread_local int i3; // COMPLIANT
static _Thread_local int i4; // COMPLIANT
}