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

Unified Diff: test/Driver/le32-unknown-nacl.cpp

Issue 7748035: PNaClTargetInfo: add __ELF__, _REENTRANT and _GNU_SOURCE defines and update the test. (Closed) Base URL: https://llvm.org/svn/llvm-project/cfe/trunk/
Patch Set: include <stdio.h> in the test Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Basic/Targets.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Driver/le32-unknown-nacl.cpp
===================================================================
--- test/Driver/le32-unknown-nacl.cpp (revision 138489)
+++ test/Driver/le32-unknown-nacl.cpp (working copy)
@@ -26,6 +26,25 @@
}
#endif
+#ifdef unix
+void unixdefined() {
+ // CHECK: unixdefined
+}
+#endif
+
+#ifdef __ELF__
+void __ELF__defined() {
+ // CHECK: __ELF__defined
+}
+#endif
+
+#ifdef _GNU_SOURCE
+void _GNU_SOURCEdefined() {
+ // CHECK: _GNU_SOURCEdefined
jvoung - send to chromium... 2011/08/26 00:06:05 Does this set Opts.CPlusPlus? I guess so. To test
+}
+#endif
+
+
// Check types
// CHECK: signext i8 @check_char()
@@ -89,3 +108,5 @@
// CHECK: SwitchILi16
Switch<sizeof(va_list)>();
}
+
+#include <stdio.h>
« no previous file with comments | « lib/Basic/Targets.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698