re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings)

2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR testsuite/25241
testsuite/
	* gcc.dg/pch/valid-1.c: Match each diagnostic with its own directive.
	* gcc.dg/pch/valid-2.c: Likewise.
	* gcc.dg/pch/valid-3.c: Likewise.
	* gcc.dg/pch/warn-1.c: Likewise.
	* gcc.dg/pch/valid-4.c: Match a warning instead of an error.

From-SVN: r126145
This commit is contained in:
Manuel López-Ibáñez 2007-06-30 13:02:48 +00:00
parent ad960f56f2
commit 72eb00bc31
6 changed files with 23 additions and 7 deletions

View File

@ -1,3 +1,12 @@
2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR testsuite/25241
* gcc.dg/pch/valid-1.c: Match each diagnostic with its own directive.
* gcc.dg/pch/valid-2.c: Likewise.
* gcc.dg/pch/valid-3.c: Likewise.
* gcc.dg/pch/warn-1.c: Likewise.
* gcc.dg/pch/valid-4.c: Match a warning instead of an error.
2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/4076

View File

@ -1,5 +1,7 @@
/* { dg-options "-I. -Winvalid-pch -g" } */
#include "valid-1.h"/* { dg-error "created with -gnone, but used with -g|No such file|they were invalid" } */
#include "valid-1.h"/* { dg-warning "created with -gnone, but used with -g" } */
/* { dg-error "No such file" "" { target *-*-* } 3 } */
/* { dg-error "they were invalid" "" { target *-*-* } 3 } */
int x;

View File

@ -1,5 +1,6 @@
/* { dg-options "-I. -Winvalid-pch -fexceptions" } */
#include "valid-2.h"/* { dg-error "settings for -fexceptions do not match|No such file|they were invalid" } */
#include "valid-2.h" /* { dg-warning "settings for -fexceptions do not match" } */
/* { dg-error "No such file" "" { target *-*-* } 3 } */
/* { dg-error "they were invalid" "" { target *-*-* } 3 } */
int x;

View File

@ -1,5 +1,6 @@
/* { dg-options "-I. -Winvalid-pch -fno-unit-at-a-time" } */
#include "valid-3.h"/* { dg-error "settings for -funit-at-a-time do not match|No such file|they were invalid" } */
#include "valid-3.h"/* { dg-warning "settings for -funit-at-a-time do not match" } */
/* { dg-error "No such file" "" { target *-*-* } 3 } */
/* { dg-error "they were invalid" "" { target *-*-* } 3 } */
int x;

View File

@ -2,5 +2,5 @@
#include "valid-4.h"
char * x = "??/"; /* { dg-error "trigraph" } */
char * x = "??/"; /* { dg-warning "trigraph" } */

View File

@ -2,7 +2,10 @@
#define DEFINED_VALUE 3
#include "warn-1.h"/* { dg-error "not used because `DEFINED_VALUE' is defined|No such file|they were invalid" } */
#include "warn-1.h"/* { dg-warning "not used because .DEFINED_VALUE. is defined" } */
/* { dg-error "No such file" "" { target *-*-* } 5 } */
/* { dg-error "they were invalid" "" { target *-*-* } 5 } */
int main(void)
{