diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-11 20:36:56 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-11 20:36:56 +0000 |
commit | bd015b4a3009c0e289b01e458f497419fb9a5b4d (patch) | |
tree | 52e03245239b2413855cba828ff26ce55d769c11 /gcc/testsuite/gcc.dg/wint_t-1.c | |
parent | 58c42a8275e3f18b668202397bf1d602950da140 (diff) | |
download | gcc-bd015b4a3009c0e289b01e458f497419fb9a5b4d.tar.gz |
* config/mips/iris6.h (NO_BUILTIN_WINT_TYPE): Define.
(WINT_TYPE): Override.
(WINT_TYPE_SIZE): Likewise.
(SUBTARGET_CPP_SIZE_SPEC): Define __WINT_TYPE__ as appropriate.
* config/sparc/sol2.h (WINT_TYPE): Define.
(WINT_TYPE_SIZE): Likewise.
* config/sparc/sol2-sld-64.h (NO_BUILTIN_WINT_TYPE): Define.
(WINT_TYPE): Override.
(WINT_TYPE_SIZE): Likewise.
(CPP_ARCH32_SPEC): Add __WINT_TYPE__ definition.
(CPP_ARCH64_SPEC): Likewise.
testsuite:
* gcc.dg/wchar_t-1.c: New file.
* gcc.dg/wint_t-1.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/wint_t-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/wint_t-1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/wint_t-1.c b/gcc/testsuite/gcc.dg/wint_t-1.c new file mode 100644 index 00000000000..3f88dcbeab0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/wint_t-1.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-Wall" } */ + +/* Compile with -Wall to get a warning if built-in and system wint_t don't + match. */ + +#define _STDDEF_H +#include <wchar.h> + +__WINT_TYPE__ __wi_t__; +wint_t *wi_t_p; + +void +wit (void) +{ + wi_t_p = &__wi_t__; +} |