blob: fd67373042baca4991494090ee099da74b67d624 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-Wnonnull" } */
void foox (char*, ...) __attribute__ ((nonnull (1)));
#define foo(p) foox (p, "p is null") /* { dg-warning "argument 1 null" } */
void baz (void)
{
foo (0); /* { dg-message "note: in expansion" } */
}