summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/redecl-1.c
blob: 732db0098dbbec7e8570b58cab3b3af6a656ec58 (plain)
1
2
3
4
5
6
7
8
9
/* Copyright 2000  Free Software Foundation */
/* by Alexandre Oliva  <aoliva@redhat.com> */

int
foo ()
{
  int bar; /* { dg-message "note: previous.*decl" "previous.*decl" } */
  volatile int bar; /* { dg-error "conflicting type qualifiers" "conflicting type qualifiers" } */
}