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/] [Wobjsize-1.c] - Blame information for rev 414

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
 
4
#include "Wobjsize-1.h"
5
 
6
char buf[6];
7
int main(int argc, char **argv)
8
{
9
  strcpy (buf,"hello ");
10
  return 0;
11
}
12
 
13
/* { dg-warning "will always overflow destination buffer" "" { target *-*-* } 6 } */
14
/* { dg-message "file included" "" { target *-*-* } 0 } */
15
/* { dg-message "inlined from" "" { target *-*-* } 0 } */

powered by: WebSVN 2.1.0

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