2011-04-01 Vincent Lefevre <vincent+gcc@vinc17.org>
authorVincent Lefevre <vincent+gcc@vinc17.org>
Fri, 1 Apr 2011 19:36:23 +0000 (21:36 +0200)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 1 Apr 2011 19:36:23 +0000 (20:36 +0100)
PR c/36299
* gcc.dg/Waddress.c: New test.

From-SVN: r171850

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Waddress.c [new file with mode: 0644]

index be2d1961bf51b118cc28aec12b080f1a95d1abf6..62d1fd68d16f921718dee476f2b01409132a9880 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-01  Vincent Lefevre  <vincent+gcc@vinc17.org>
+
+       PR c/36299
+       * gcc.dg/Waddress.c: New test.
+
 2011-04-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/48352
diff --git a/gcc/testsuite/gcc.dg/Waddress.c b/gcc/testsuite/gcc.dg/Waddress.c
new file mode 100644 (file)
index 0000000..146b1a9
--- /dev/null
@@ -0,0 +1,10 @@
+/* PR c/36299 */
+/* { dg-do compile } */
+/* { dg-options "-Waddress" } */
+
+int
+foo(void)
+{
+  char a[1];
+  return a == 0;
+}