aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr66208.c
blob: fd67373042baca4991494090ee099da74b67d624 (plain)
1
2
3
4
5
6
7
8
9
10
/* { 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" } */
}