20000628-1.c: New test.

* gcc.dg/cpp/20000628-1.c: New test.
	* gcc.dg/cpp/20000628-1.h: New header for above test.
	* gcc.dg/cpp/20000628-1a.h: Likewise.

From-SVN: r34762
This commit is contained in:
Jakub Jelinek 2000-06-28 21:34:12 +02:00 committed by Jakub Jelinek
parent 54bef41ddc
commit 39ab19f679
4 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2000-06-28 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/cpp/20000628-1.c: New test.
* gcc.dg/cpp/20000628-1.h: New header for above test.
* gcc.dg/cpp/20000628-1a.h: Likewise.
2000-06-27 Zack Weinberg <zack@wolery.cumb.org>
* gcc.dg/cpp: New directory.

View File

@ -0,0 +1,5 @@
/* Test if #line commands are generated properly even when header
includes self. */
/* { dg-do compile } */
#include "20000628-1.h"
int main(void) { return 0; }

View File

@ -0,0 +1,8 @@
/* Test if #line commands are generated properly even when header
includes self. */
#include "20000628-1a.h"
#ifndef t20000628_1_h
#define t20000628_1_h 1
#include "20000628-1.h"
#include "20000628-1a.h"
#endif

View File

@ -0,0 +1,2 @@
/* Included from 20000628-1.h */
asm ("");