From c1c0e8e1d308828391ab2ff91c1945006a772b2c Mon Sep 17 00:00:00 2001 From: Vincent Lefevre Date: Fri, 1 Apr 2011 21:36:23 +0200 Subject: [PATCH] 2011-04-01 Vincent Lefevre PR c/36299 * gcc.dg/Waddress.c: New test. From-SVN: r171850 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/Waddress.c | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/Waddress.c 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; +} -- 2.30.2