annotate gcc/testsuite/gcc.dg/20011214-1.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do run } */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 extern void abort (void);
kono
parents:
diff changeset
4 extern void exit (int);
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define small __attribute__((mode(QI))) int
kono
parents:
diff changeset
7 int main()
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 int x, y = 0x400;
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 x = (small) y; /* { dg-bogus "ignored" } */
kono
parents:
diff changeset
12 if (sizeof (small) != sizeof (char)) /* { dg-bogus "ignored" } */
kono
parents:
diff changeset
13 abort ();
kono
parents:
diff changeset
14 if (sizeof (x) != sizeof (char) && x == y)
kono
parents:
diff changeset
15 abort ();
kono
parents:
diff changeset
16 return 0;
kono
parents:
diff changeset
17 }