diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/Sema/exprs.c | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) |
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 2fb17e4880c6..17b1aa2851b0 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; } |