summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wno-c++-compat.c
blob: 1fda016e66ea619b2c5ee77cc49c371e0d797faa (plain)
1
2
3
4
5
6
7
8
9
/* Copyright (C) 2005  Free Software Foundation.

   by Gabriel Dos Reis  <gdr@integrable-solutions.net>  */

/* { dg-do compile }  */
/* { dg-options "-Wno-c++-compat" } */

extern const int foo = 42;      /* { dg-warning "initialized and declared" } */