From: Vincent Lefevre Date: Fri, 1 Apr 2011 19:36:23 +0000 (+0200) Subject: 2011-04-01 Vincent Lefevre X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1c0e8e1d308828391ab2ff91c1945006a772b2c;p=gcc.git 2011-04-01 Vincent Lefevre PR c/36299 * gcc.dg/Waddress.c: New test. From-SVN: r171850 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index be2d1961bf5..62d1fd68d16 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-04-01 Vincent Lefevre + + PR c/36299 + * gcc.dg/Waddress.c: New test. + 2011-04-01 Thomas Koenig PR fortran/48352 diff --git a/gcc/testsuite/gcc.dg/Waddress.c b/gcc/testsuite/gcc.dg/Waddress.c new file mode 100644 index 00000000000..146b1a932df --- /dev/null +++ b/gcc/testsuite/gcc.dg/Waddress.c @@ -0,0 +1,10 @@ +/* PR c/36299 */ +/* { dg-do compile } */ +/* { dg-options "-Waddress" } */ + +int +foo(void) +{ + char a[1]; + return a == 0; +}