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
This commit is contained in:
parent
051aec2563
commit
122168d7b2
@ -1,7 +1,14 @@
|
||||
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>
|
||||
|
||||
* 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/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)
|
||||
2000-06-28 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
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.
|
||||
|
||||
* Deleted files:
|
||||
|
@ -2,4 +2,4 @@
|
||||
includes self. */
|
||||
/* { dg-do compile } */
|
||||
#include "20000628-1.h"
|
||||
int main(void) { return 0; }
|
||||
int main(void) { return a + b + c; }
|
||||
|
@ -1,2 +1,15 @@
|
||||
/* Included from 20000628-1.h */
|
||||
extern int x;
|
||||
/* Included from 20000628-1.h. This header is supposed to be seen
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user