diff options
Diffstat (limited to 'test/Sema/exprs.c')
-rw-r--r-- | test/Sema/exprs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Sema/exprs.c b/test/Sema/exprs.c index 2fb17e4..17b1aa2 100644 --- a/test/Sema/exprs.c +++ b/test/Sema/exprs.c @@ -244,6 +244,10 @@ void test22() { if ("help") (void) 0; - if (test22) + if (test22) // expected-warning {{address of function 'test22' will always evaluate to 'true'}} \ + // expected-note {{prefix with the address-of operator to silence this warning}} + (void) 0; + + if (&test22) (void) 0; } |