Patchwork Test case for PR55033

login
register
mail settings
Submitter Sebastian Huber
Date May 10, 2013, 7:40 a.m.
Message ID <1368171604-7349-1-git-send-email-sebastian.huber@embedded-brains.de>
Download mbox | patch
Permalink /patch/242927/
State New
Headers show

Comments

Sebastian Huber - May 10, 2013, 7:40 a.m.
gcc/testsuite/ChangeLog
2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	PR target/55033
	* gcc.target/powerpc/pr55033.c: New.
---
 gcc/testsuite/gcc.target/powerpc/pr55033.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/powerpc/pr55033.c
Chung-Ju Wu - May 10, 2013, 2:12 p.m.
2013/5/10 Sebastian Huber <sebastian.huber@embedded-brains.de>:
> gcc/testsuite/ChangeLog
> 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>
>         PR target/55033
>         * gcc.target/powerpc/pr55033.c: New.
> ---
>  gcc/testsuite/gcc.target/powerpc/pr55033.c |   21 +++++++++++++++++++++
>  1 files changed, 21 insertions(+), 0 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.target/powerpc/pr55033.c
>
> diff --git a/gcc/testsuite/gcc.target/powerpc/pr55033.c b/gcc/testsuite/gcc.target/powerpc/pr55033.c
> new file mode 100644
> index 0000000..cd8abcb
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/powerpc/pr55033.c
> @@ -0,0 +1,21 @@
> +/* { dg-do compile } */
> +/* { dg-require-effective-target powerpc_eabi_ok } */
> +/* { dg-options "-mcpu=8540 -msoft-float -msdata=eabi -G 8 -fno-common" } */
> +
> +void f(void);
       ^^^^^
I think there is missing space. :p

> +
> +struct s {
> +  int *p;
> +  int *q;
> +};
> +
> +extern int a;
> +
> +extern const struct s c;
> +
> +const struct s c = { &a, 0 };
> +
> +void f(void)
       ^^^^^
Likewise. :)

> +{
> +  char buf[4] = { 0, 1, 2, 3 };
> +}
> --
> 1.7.7
>

Best regards,
jasonwucj

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/pr55033.c b/gcc/testsuite/gcc.target/powerpc/pr55033.c
new file mode 100644
index 0000000..cd8abcb
--- /dev/null
+++ b/gcc/testsuite/gcc.target/powerpc/pr55033.c
@@ -0,0 +1,21 @@ 
+/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_eabi_ok } */
+/* { dg-options "-mcpu=8540 -msoft-float -msdata=eabi -G 8 -fno-common" } */
+
+void f(void);
+
+struct s {
+  int *p;
+  int *q;
+};
+
+extern int a;
+
+extern const struct s c;
+
+const struct s c = { &a, 0 };
+
+void f(void)
+{
+  char buf[4] = { 0, 1, 2, 3 };
+}