[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / avr-size-align.c
blob9fe94410c91c49c74d016f99c581cf5f21291f15
1 // RUN: %clang_cc1 %s -triple avr -fsyntax-only
3 _Static_assert(sizeof(char) == 1, "sizeof(char) == 1");
4 _Static_assert(_Alignof(char) == 1, "_Alignof(char) == 1");
5 _Static_assert(__alignof(char) == 1, "__alignof(char) == 1");
7 _Static_assert(sizeof(short) == 2, "sizeof(short) == 2");
8 _Static_assert(_Alignof(short) == 1, "_Alignof(short) == 1");
9 _Static_assert(__alignof(short) == 1, "__alignof(short) == 1");
11 _Static_assert(sizeof(unsigned short) == 2, "sizeof(unsigned short) == 2");
12 _Static_assert(_Alignof(unsigned short) == 1, "_Alignof(unsigned short) == 1");
13 _Static_assert(__alignof(unsigned short) == 1, "__alignof(unsigned short) == 1");
15 _Static_assert(sizeof(int) == 2, "sizeof(int) == 2");
16 _Static_assert(_Alignof(int) == 1, "_Alignof(int) == 1");
17 _Static_assert(__alignof(int) == 1, "__alignof(int) == 1");
19 _Static_assert(sizeof(unsigned int) == 2, "sizeof(unsigned int) == 2");
20 _Static_assert(_Alignof(unsigned int) == 1, "_Alignof(unsigned int) == 1");
21 _Static_assert(__alignof(unsigned int) == 1, "__alignof(unsigned int) == 1");
23 _Static_assert(sizeof(long) == 4, "sizeof(long) == 4");
24 _Static_assert(_Alignof(long) == 1, "_Alignof(long) == 1");
25 _Static_assert(__alignof(long) == 1, "__alignof(long) == 1");
27 _Static_assert(sizeof(unsigned long) == 4, "sizeof(unsigned long) == 4");
28 _Static_assert(_Alignof(unsigned long) == 1, "_Alignof(unsigned long) == 1");
29 _Static_assert(__alignof(unsigned long) == 1, "__alignof(unsigned long) == 1");
31 _Static_assert(sizeof(long long) == 8, "sizeof(long long) == 8");
32 _Static_assert(_Alignof(long long) == 1, "_Alignof(long long) == 1");
33 _Static_assert(__alignof(long long) == 1, "__alignof(long long) == 1");
35 _Static_assert(sizeof(unsigned long long) == 8, "sizeof(unsigned long long) == 8");
36 _Static_assert(_Alignof(unsigned long long) == 1, "_Alignof(unsigned long long) == 1");
37 _Static_assert(__alignof(unsigned long long) == 1, "__alignof(unsigned long long) == 1");
39 _Static_assert(sizeof(float) == 4, "sizeof(float) == 4");
40 _Static_assert(_Alignof(float) == 1, "_Alignof(float) == 1");
41 _Static_assert(__alignof(float) == 1, "__alignof(float) == 1");
43 _Static_assert(sizeof(double) == 4, "sizeof(double) == 4");
44 _Static_assert(_Alignof(double) == 1, "_Alignof(double) == 1");
45 _Static_assert(__alignof(double) == 1, "__alignof(double) == 1");
47 _Static_assert(sizeof(long double) == 4, "sizeof(long double) == 4");
48 _Static_assert(_Alignof(long double) == 1, "_Alignof(long double) == 1");
49 _Static_assert(__alignof(long double) == 1, "__alignof(long double) == 1");