mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 14:41:07 +08:00
decl-2.c: Add extra line breaks.
* gcc.dg/decl-2.c: Add extra line breaks. That way we can verify that diagnotics refer to correct token. * gcc.dg/unused-3.c: Likewise. From-SVN: r96339
This commit is contained in:
parent
7532884955
commit
7c6d34c729
@ -15,6 +15,12 @@
|
||||
|
||||
* gcc.dg/vmx/darwin-abi-3.c: Delete.
|
||||
|
||||
2005-03-11 Per Bothner <per@bothner.com>
|
||||
|
||||
* gcc.dg/decl-2.c: Add extra line breaks. That way we can verify
|
||||
that diagnotics refer to correct token.
|
||||
* gcc.dg/unused-3.c: Likewise.
|
||||
|
||||
2005-03-11 Per Bothner <per@bothner.com>
|
||||
|
||||
* gcc.dg/cpp/direct2.c: With new lexer changes, error "before string
|
||||
|
@ -1,10 +1,16 @@
|
||||
/* PR c/7411 */
|
||||
/* Contributed by Christian Ehrhardt */
|
||||
/* Added extra line-breaks to check that diagnostics refer to correct token.
|
||||
--Per Bothner. */
|
||||
/* { dg-do compile } */
|
||||
|
||||
void foo(void)
|
||||
{
|
||||
char c; /* { dg-error "previous declaration" } */
|
||||
char
|
||||
c /* { dg-error "previous declaration" } */
|
||||
;
|
||||
int i;
|
||||
int c = i; /* { dg-error "conflicting types" } */
|
||||
int
|
||||
c /* { dg-error "conflicting types" } */
|
||||
= i;
|
||||
}
|
||||
|
@ -1,10 +1,14 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation. */
|
||||
/* Added extra line-breaks to check that diagnostics refer to correct token.
|
||||
--Per Bothner. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wunused" } */
|
||||
|
||||
typedef short unused_type __attribute__ ((unused));
|
||||
main ()
|
||||
{
|
||||
short x; /* { dg-warning "unused variable" "unused variable warning" } */
|
||||
short
|
||||
x /* { dg-warning "unused variable" "unused variable warning" } */
|
||||
;
|
||||
unused_type y;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user