OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr40340-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/40340 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -Wall -Wno-system-headers" } */
4
 
5
#include "pr40340.h"
6
 
7
static inline
8
__attribute__ ((always_inline))
9
void
10
test (char *p)
11
{
12
  memset (p, 0, 6);
13
}
14
 
15
int
16
main (void)
17
{
18
  char buf[4];
19
  test (buf);
20
  return 0;
21
}
22
 
23
/* { dg-warning "will always overflow destination buffer" "" { target *-*-* } 10 } */
24
/* { dg-message "file included" "In file included" { target *-*-* } 0 } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.