aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-07-01 12:41:18 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-07-01 12:41:18 +0000
commite807aeaae32697a203928a7900426d011c98dedc (patch)
tree36d17c826bc20c8daf08911f9ec380f7a09ad4de /gcc/testsuite
parentc575221adaa3075be660a28371977f52ce939ba8 (diff)
downloadgcc-e807aeaae32697a203928a7900426d011c98dedc.zip
gcc-e807aeaae32697a203928a7900426d011c98dedc.tar.gz
gcc-e807aeaae32697a203928a7900426d011c98dedc.tar.bz2
jit: document union types
gcc/jit/ChangeLog: * docs/topics/types.rst (gcc_jit_context_new_union_type): Add documentation. * docs/_build/texinfo/libgccjit.texi: Regenerate. gcc/testsuite/ChangeLog: * jit.dg/test-accessing-union.c: Add comments for use by gcc/jit/docs/topics/types.rst. From-SVN: r225246
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/jit.dg/test-accessing-union.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ca8c923..ad2cb51 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-01 David Malcolm <dmalcolm@redhat.com>
+
+ * jit.dg/test-accessing-union.c: Add comments for use by
+ gcc/jit/docs/topics/types.rst.
+
2015-07-01 Matthew Wahab <matthew.wahab@arm.com>
* gcc.target/arm/armv8-sync-comp-swap.c: Replace
diff --git a/gcc/testsuite/jit.dg/test-accessing-union.c b/gcc/testsuite/jit.dg/test-accessing-union.c
index 658d1bc..15656e9 100644
--- a/gcc/testsuite/jit.dg/test-accessing-union.c
+++ b/gcc/testsuite/jit.dg/test-accessing-union.c
@@ -5,6 +5,8 @@
#include "harness.h"
+/* Quote from here in docs/topics/types.rst. */
+
union int_or_float
{
int as_int;
@@ -77,6 +79,8 @@ create_code (gcc_jit_context *ctxt, void *user_data)
as_float));
}
+/* Quote up to here in docs/topics/types.rst. */
+
void
verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
{