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

Side by Side Diff: test/Driver/x86_64-nacl-defines.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/CodeGen/x86_64-arguments-nacl.c ('k') | test/Driver/x86_64-nacl-types.cpp » ('j') | 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 -target x86_64-unknown-nacl -ccc-echo %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO
2 // RUN: %clang -target x86_64-unknown-nacl %s -emit-llvm -S -c -o - | FileCheck %s
3 // RUN: %clang -target x86_64-unknown-nacl %s -emit-llvm -S -c -pthread -o - | F ileCheck %s -check-prefix=THREADS
4
5 // ECHO: {{.*}} -cc1 {{.*}}x86_64-nacl-defines.c
6
7 // Check platform defines
8
9 // CHECK: __LITTLE_ENDIAN__defined
10 #ifdef __LITTLE_ENDIAN__
11 void __LITTLE_ENDIAN__defined() {}
12 #endif
13
14 // CHECK: __native_client__defined
15 #ifdef __native_client__
16 void __native_client__defined() {}
17 #endif
18
19 // CHECK: __x86_64__defined
20 #ifdef __x86_64__
21 void __x86_64__defined() {}
22 #endif
23
24 // CHECK: unixdefined
25 #ifdef unix
26 void unixdefined() {}
27 #endif
28
29 // CHECK: __ELF__defined
30 #ifdef __ELF__
31 void __ELF__defined() {}
32 #endif
33
34 // CHECK: _GNU_SOURCEdefined
35 #ifdef _GNU_SOURCE
36 void _GNU_SOURCEdefined() {}
37 #endif
38
39 // THREADS: _REENTRANTdefined
40 // CHECK: _REENTRANTundefined
41 #ifdef _REENTRANT
42 void _REENTRANTdefined() {}
43 #else
44 void _REENTRANTundefined() {}
45 #endif
OLDNEW
« no previous file with comments | « test/CodeGen/x86_64-arguments-nacl.c ('k') | test/Driver/x86_64-nacl-types.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698