comparison gcc/testsuite/c-c++-common/pr66208.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-Wnonnull" } */
3
4 void foox (char*, ...) __attribute__ ((nonnull (1)));
5 #define foo(p) foox (p, "p is null") /* { dg-warning "null argument" } */
6
7 void baz (void)
8 {
9 foo (0); /* { dg-message "note: in expansion" } */
10 }