comparison gcc/testsuite/gcc.dg/tree-ssa/pr24840.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 typedef struct
5 {
6 int tag, y;
7 } Object;
8
9 void Err_Handler () __attribute__ ((__noreturn__));
10 void Wrong_Type (Object, int);
11
12 int
13 P_Error (int argc, Object * argv)
14 {
15 if (((argv[1]).tag >> 1) != 11)
16 Wrong_Type (argv[1], 11);
17 Err_Handler (argv[0], argv[1], argc - 2, argv + 2);
18 }