Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr78768.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
7 | 7 |
8 int main (void) | 8 int main (void) |
9 { | 9 { |
10 char *d = (char *)__builtin_alloca (12); /* { dg-warning "argument to .alloca. is too large" } */ | 10 char *d = (char *)__builtin_alloca (12); /* { dg-warning "argument to .alloca. is too large" } */ |
11 | 11 |
12 __builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing 32 bytes into a region of size 12" "-Wformat-overflow" { xfail *-*-* } } */ | 12 __builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing 32 bytes into a region of size 12" "-Wformat-overflow" } */ |
13 | 13 |
14 return 0; | 14 return 0; |
15 } | 15 } |