comparison gcc/testsuite/gcc.dg/pr62090.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 long a;
5 int *b;
6 extern __inline __attribute__ ((__always_inline__))
7 __attribute__ ((__gnu_inline__)) int sprintf (int *p1, char *p2, ...)
8 {
9 a = __builtin_object_size (0, 0);
10 return __builtin___sprintf_chk (0, 0, a, p2, __builtin_va_arg_pack ());
11 }
12
13 void
14 log_bad_request ()
15 {
16 b += sprintf (0, "foo");
17 }