Commit 122168d7 by Zack Weinberg

20000628-1a.h: On each of the first three inclusions, declare one variable.

	* gcc.dg/cpp/20000628-1a.h: On each of the first three inclusions,
	declare one variable.  On the fourth, error.
	* gcc.dg/cpp/20000628-1.c (main): Reference the three variables
	declared by 20000628-1a.h.

From-SVN: r34790
parent 051aec25
2000-06-29 Zack Weinberg <zack@wolery.cumb.org>
* gcc.dg/cpp/20000628-1a.h: On each of the first three inclusions,
declare one variable. On the fourth, error.
* gcc.dg/cpp/20000628-1.c (main): Reference the three variables
declared by 20000628-1a.h.
2000-06-29 Richard Henderson <rth@redhat.com> 2000-06-29 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/930529-1.x: New file. * gcc.c-torture/execute/930529-1.x: New file.
* gcc.dg/920413-1.c: Adjust expexted warning text. * gcc.dg/920413-1.c: Adjust expected warning text.
* gcc.dg/980217-1.c: Declare abort. * gcc.dg/980217-1.c: Declare abort.
* gcc.dg/cpp/20000628-1a.h: Use a declaration instead of an asm. * gcc.dg/cpp/20000628-1a.h: Use a declaration instead of an asm.
...@@ -13,7 +20,7 @@ Thu Jun 29 09:42:40 2000 Jeffrey A Law (law@cygnus.com) ...@@ -13,7 +20,7 @@ Thu Jun 29 09:42:40 2000 Jeffrey A Law (law@cygnus.com)
2000-06-28 Zack Weinberg <zack@wolery.cumb.org> 2000-06-28 Zack Weinberg <zack@wolery.cumb.org>
Rearrange lots of files, removing entirely the Rearrange lots of files, removing entirely the
gcc.c-torture/special, gcc.c-torture/code-quality, and gcc.failure gcc.c-torture/special, gcc.c-torture/code_quality, and gcc.failure
directories. directories.
* Deleted files: * Deleted files:
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
includes self. */ includes self. */
/* { dg-do compile } */ /* { dg-do compile } */
#include "20000628-1.h" #include "20000628-1.h"
int main(void) { return 0; } int main(void) { return a + b + c; }
/* Included from 20000628-1.h */ /* Included from 20000628-1.h. This header is supposed to be seen
extern int x; exactly three times. */
#if !defined A
#define A
int a;
#elif !defined B
#define B
int b;
#elif !defined C
#define C
int c;
#else
#error Included a fourth time
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment