diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-05-06 09:48:28 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-05-06 09:48:28 +0000 |
commit | 7f75752bd9b8ceb778920cfbda7aae9684efb578 (patch) | |
tree | 68c59d0b3eafeae783b9a5d65a24ecaee3d40e8e | |
parent | 3364a739818bae4052884c04d70298bac6c03f06 (diff) | |
download | gcc-7f75752bd9b8ceb778920cfbda7aae9684efb578.zip gcc-7f75752bd9b8ceb778920cfbda7aae9684efb578.tar.gz gcc-7f75752bd9b8ceb778920cfbda7aae9684efb578.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/syshdr.h | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/sysmac1.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/sysmac2.c | 10 |
4 files changed, 20 insertions, 16 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ff86ee02..8199189 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.dg/cpp/syshdr.h b/gcc/testsuite/gcc.dg/cpp/syshdr.h new file mode 100644 index 0000000..3f546aa --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/syshdr.h @@ -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 diff --git a/gcc/testsuite/gcc.dg/cpp/sysmac1.c b/gcc/testsuite/gcc.dg/cpp/sysmac1.c index cfc2b3d..fa741a4 100644 --- a/gcc/testsuite/gcc.dg/cpp/sysmac1.c +++ b/gcc/testsuite/gcc.dg/cpp/sysmac1.c @@ -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" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/sysmac2.c b/gcc/testsuite/gcc.dg/cpp/sysmac2.c index 0f32654..6d493a9 100644 --- a/gcc/testsuite/gcc.dg/cpp/sysmac2.c +++ b/gcc/testsuite/gcc.dg/cpp/sysmac2.c @@ -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 () { |