mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 13:35:24 +08:00
syshdr.h: New file.
* gcc.dg/cpp/syshdr.h: New file. * gcc.dg/cpp/sysmac1.c: Update. * gcc.dg/cpp/sysmac2.c: Update. From-SVN: r41873
This commit is contained in:
parent
3364a73981
commit
7f75752bd9
@ -1,3 +1,9 @@
|
||||
2001-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* gcc.dg/cpp/syshdr.h: New file.
|
||||
* gcc.dg/cpp/sysmac1.c: Update.
|
||||
* gcc.dg/cpp/sysmac2.c: Update.
|
||||
|
||||
2001-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* gcc.dg/cpp/sysmac1.c,sysmac2.c: Return to original file.
|
||||
|
10
gcc/testsuite/gcc.dg/cpp/syshdr.h
Normal file
10
gcc/testsuite/gcc.dg/cpp/syshdr.h
Normal file
@ -0,0 +1,10 @@
|
||||
/* Indented to avoid "suggest hiding ..." warnings. */
|
||||
#pragma GCC system_header
|
||||
|
||||
#define sys_uint 1U
|
||||
#define sys_str(x) x
|
||||
#define sys_foo(x, y...) bar (x, ##y)
|
||||
|
||||
#define sys_uint 1U
|
||||
#define sys_fl 1.0f
|
||||
#define sys_ld 1.0L
|
@ -8,18 +8,12 @@
|
||||
|
||||
/* Source: Neil Booth, 15 Jan 2001. */
|
||||
|
||||
#include "syshdr.h"
|
||||
|
||||
#define uint 1U
|
||||
#define str(x) x
|
||||
#define foo(x, y...) bar(x, ##y) /* { dg-warning "named variadic macros" } */
|
||||
|
||||
# 16 "system.h" 1 3 /* { dg-warning "followed by integer" } */
|
||||
|
||||
#define sys_uint 1U
|
||||
#define sys_str(x) x
|
||||
#define sys_foo(x, y...) bar (x, ##y)
|
||||
|
||||
# 22 "sysmac1.c" 2
|
||||
|
||||
#if uint /* { dg-warning "traditional C rejects" } */
|
||||
#endif
|
||||
#if sys_uint /* { dg-bogus "traditional C rejects" } */
|
||||
|
@ -8,18 +8,12 @@
|
||||
|
||||
/* Source: Neil Booth, 15 Jan 2001. */
|
||||
|
||||
#include "syshdr.h"
|
||||
|
||||
#define uint 1U
|
||||
#define fl 1.0f
|
||||
#define ld 1.0L
|
||||
|
||||
# 16 "system.h" 1 3 /* { dg-warning "followed by integer" } */
|
||||
|
||||
#define sys_uint 1U
|
||||
#define sys_fl 1.0f
|
||||
#define sys_ld 1.0L
|
||||
|
||||
# 22 "sysmac2.c" 2
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user