Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: test/Driver/x86_64-nacl-types.cpp

Issue 10986071: Properly factor Native Client defines to support NaCl OS on ARM and x86 (Closed) Base URL: http://llvm.org/git/clang.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/Driver/x86_64-nacl-defines.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // RUN: %clang_cc1 -triple x86_64-unknown-nacl -std=c++11 -verify %s
2
3 #include <stddef.h>
4 #include <stdarg.h>
5
6 static_assert(alignof(char) == 1, "alignof char is wrong");
7
8 static_assert(alignof(short) == 2, "sizeof short is wrong");
9 static_assert(alignof(short) == 2, "alignof short is wrong");
10
11 static_assert(alignof(int) == 4, "sizeof int is wrong");
12 static_assert(alignof(int) == 4, "alignof int is wrong");
13
14 static_assert(sizeof(long) == 4, "sizeof long is wrong");
15 static_assert(sizeof(long) == 4, "alignof long is wrong");
16
17 static_assert(sizeof(long long) == 8, "sizeof long long is wrong wrong");
18 static_assert(alignof(long long) == 8, "alignof long long is wrong wrong");
19
20 static_assert(sizeof(void*) == 4, "sizeof void * is wrong");
21 static_assert(alignof(void*) == 4, "alignof void * is wrong");
22
23 static_assert(sizeof(float) == 4, "sizeof float is wrong");
24 static_assert(alignof(float) == 4, "alignof float is wrong");
25
26 static_assert(sizeof(double) == 8, "sizeof double is wrong");
27 static_assert(alignof(double) == 8, "alignof double is wrong");
28
29 static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
30 static_assert(alignof(long double) == 8, "alignof long double is wrong");
31
32 static_assert(sizeof(va_list) == 16, "sizeof va_list is wrong");
33 static_assert(alignof(va_list) == 4, "alignof va_list is wrong");
34
35 static_assert(sizeof(size_t) == 4, "sizeof size_t is wrong");
36 static_assert(alignof(size_t) == 4, "alignof size_t is wrong");
OLDNEW
« no previous file with comments | « test/Driver/x86_64-nacl-defines.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698