include2a.c: Add comments to checks for multiple messages reported for one line of source code.

* gcc.dg/cpp/include2a.c: Add comments to checks for multiple
	messages reported for one line of source code.
	* gcc.dg/cpp/pr30786.c: Likewise.
	* gcc.dg/cpp/pr28709.c: Likewise.
	* gcc.dg/cpp/missing-header-MD.c: Likewise.
	* gcc.dg/cpp/macspace2.c: Likewise.
	* gcc.dg/cpp/missing-header-1.c: Likewise.
	* gcc.dg/cpp/missing-header-MMD.c: Likewise.
	* gcc.dg/cpp/missing-sysheader-MD.c: Likewise.
	* gcc.dg/cpp/missing-sysheader-MMD.c: Likewise.

From-SVN: r188476
This commit is contained in:
Janis Johnson 2012-06-12 20:23:36 +00:00
parent 69c8c01f15
commit 9a3edfd46b
10 changed files with 33 additions and 20 deletions

View File

@ -1,4 +1,17 @@
2012-06-07 Jason Merrill <jason@redhat.com>
2012-06-12 Janis Johnson <janisjo@codesourcery.com>
* gcc.dg/cpp/include2a.c: Add comments to checks for multiple
messages reported for one line of source code.
* gcc.dg/cpp/pr30786.c: Likewise.
* gcc.dg/cpp/pr28709.c: Likewise.
* gcc.dg/cpp/missing-header-MD.c: Likewise.
* gcc.dg/cpp/macspace2.c: Likewise.
* gcc.dg/cpp/missing-header-1.c: Likewise.
* gcc.dg/cpp/missing-header-MMD.c: Likewise.
* gcc.dg/cpp/missing-sysheader-MD.c: Likewise.
* gcc.dg/cpp/missing-sysheader-MMD.c: Likewise.
2012-06-12 Jason Merrill <jason@redhat.com>
PR c++/53599
* g++.dg/template/local7.C: New.

View File

@ -11,6 +11,6 @@
/* These error is No such file or directory, just once. However, this
message is locale-dependent, so don't test for it. */
/* { dg-error "silly" "" { target *-*-* } 0 } */
/* { dg-error "missing" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
/* { dg-error "silly" "silly" { target *-*-* } 0 } */
/* { dg-error "missing" "missing" { target *-*-* } 0 } */
/* { dg-message "terminated" "terminated" { target *-*-* } 0 } */

View File

@ -59,5 +59,5 @@
#define ag"abc" /* { dg-error "requires whitespace" } */
int dummy;
/* { dg-error "missing terminating" "" { target *-*-* } 6 } */
/* { dg-error "missing terminating" "" { target *-*-* } 10 } */
/* { dg-error "missing terminating" "missing-terminating" { target *-*-* } 6 } */
/* { dg-error "missing terminating" "missing-terminating" { target *-*-* } 10 } */

View File

@ -3,8 +3,8 @@
/* { dg-options "" } */
#include "nonexistent.h"
/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
/* { dg-message "nonexistent.h" "nonexistent.h" { target *-*-* } 0 } */
/* { dg-message "terminated" "terminated" { target *-*-* } 0 } */
/* This declaration should not receive any diagnostic. */
foo bar;

View File

@ -3,8 +3,8 @@
/* { dg-options "-MD" } */
#include "nonexistent.h"
/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
/* { dg-message "nonexistent.h" "nonexistent.h" { target *-*-* } 0 } */
/* { dg-message "terminated" "terminated" { target *-*-* } 0 } */
/* This declaration should not receive any diagnostic. */
foo bar;

View File

@ -3,8 +3,8 @@
/* { dg-options "-MMD" } */
#include "nonexistent.h"
/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
/* { dg-message "nonexistent.h" "nonexistent.h" { target *-*-* } 0 } */
/* { dg-message "terminated" "terminated" { target *-*-* } 0 } */
/* This declaration should not receive any diagnostic. */
foo bar;

View File

@ -3,8 +3,8 @@
/* { dg-options "-MD" } */
#include <nonexistent.h>
/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
/* { dg-message "nonexistent.h" "nonexistent.h" { target *-*-* } 0 } */
/* { dg-message "terminated" "terminated" { target *-*-* } 0 } */
/* This declaration should not receive any diagnostic. */
foo bar;

View File

@ -3,8 +3,8 @@
/* { dg-options "-MMD" } */
#include <nonexistent.h>
/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
/* { dg-message "nonexistent.h" "nonexistent.h" { target *-*-* } 0 } */
/* { dg-message "terminated" "terminated" { target *-*-* } 0 } */
/* This declaration should not receive any diagnostic. */
foo bar;

View File

@ -6,5 +6,5 @@
#define foo - ## >>
foo;
/* { dg-error "expected identifier.*'-'" "" { target *-*-* } 8 } */
/* { dg-error pasting "" { target *-*-* } 8 } */
/* { dg-error "expected identifier.*'-'" "expected" { target *-*-* } 8 } */
/* { dg-error pasting "pasting" { target *-*-* } 8 } */

View File

@ -1,8 +1,8 @@
/* PR preprocessor/30786 - _Pragma at end of file should not ICE */
/* { dg-do compile } */
/* { dg-error "parenthesized" "" { target *-*-* } 9 } */
/* { dg-error "expected" "" { target *-*-* } 9 } */
/* { dg-error "parenthesized" "parenthesized" { target *-*-* } 9 } */
/* { dg-error "expected" "expected" { target *-*-* } 9 } */
int x;