Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/format/pr80919.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR c/80919 */ /* { dg-do compile } */ /* { dg-options "-Wall" } */ void fn (void) { int a[0]; __builtin_printf("%d\n", &a); /* { dg-warning "expects argument of type" } */ __builtin_printf("%i\n", &a); /* { dg-warning "expects argument of type" } */ __builtin_printf("%o\n", &a); /* { dg-warning "expects argument of type" } */ __builtin_printf("%u\n", &a); /* { dg-warning "expects argument of type" } */ __builtin_printf("%x\n", &a); /* { dg-warning "expects argument of type" } */ __builtin_printf("%X\n", &a); /* { dg-warning "expects argument of type" } */ }