Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/Wobjsize-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
131 | 2 /* { dg-options "-O2 -Wall -Wno-array-bounds" } */ |
111 | 3 |
4 #include "Wobjsize-1.h" | |
5 | |
6 char buf[6]; | |
7 /* { dg-warning "writing" "" { target *-*-* } .-1 } */ | |
8 | |
9 int main(int argc, char **argv) | |
10 { | |
11 strcpy (buf,"hello "); | |
12 return 0; | |
13 } | |
14 | |
15 /* { dg-message "file included" "included" { target *-*-* } 0 } */ | |
16 /* { dg-message "inlined from" "inlined" { target *-*-* } 0 } */ |