projects
/
platform
/
upstream
/
gcc48.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
gcc.dg
/
c90-const-expr-6.c
diff --git
a/gcc/testsuite/gcc.dg/c90-const-expr-6.c
b/gcc/testsuite/gcc.dg/c90-const-expr-6.c
index
c432cca
..
50239ce
100644
(file)
--- a/
gcc/testsuite/gcc.dg/c90-const-expr-6.c
+++ b/
gcc/testsuite/gcc.dg/c90-const-expr-6.c
@@
-4,13
+4,13
@@
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
-__extension__ typedef __
PTRDIFF_TYPE__ ptrdiff
_t;
+__extension__ typedef __
INTPTR_TYPE__ intptr
_t;
/* PR 29116. */
int n = 0, p[n * 0 + 1]; /* { dg-error "variabl|can't be evaluated" } */
/* PR 31871. */
/* PR 29116. */
int n = 0, p[n * 0 + 1]; /* { dg-error "variabl|can't be evaluated" } */
/* PR 31871. */
-extern int c[1 + ((
ptrdiff
_t) (void *) 0)]; /* { dg-error "variab|can't be evaluated" } */
+extern int c[1 + ((
intptr
_t) (void *) 0)]; /* { dg-error "variab|can't be evaluated" } */
/* Implicit conversions from floating-point constants are not OK,
although explicit ones are. */
/* Implicit conversions from floating-point constants are not OK,
although explicit ones are. */
@@
-34,7
+34,7
@@
struct s {
};
enum e {
};
enum e {
- E = (1 + ((
ptrdiff
_t) (void *) 0)), /* { dg-error "constant" } */
+ E = (1 + ((
intptr
_t) (void *) 0)), /* { dg-error "constant" } */
E2 = 0
};
E2 = 0
};
@@
-46,7
+46,7
@@
enum f {
void
f (int a)
{
void
f (int a)
{
- int v[1 + ((
ptrdiff
_t) (void *) 0)]; /* { dg-error "variab|can't be evaluated" } */
+ int v[1 + ((
intptr
_t) (void *) 0)]; /* { dg-error "variab|can't be evaluated" } */
switch (a)
{
case (n * 0 + 1): /* { dg-error "constant" } */
switch (a)
{
case (n * 0 + 1): /* { dg-error "constant" } */