diff options
Diffstat (limited to 'test/Sema/parentheses.cpp')
-rw-r--r-- | test/Sema/parentheses.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/parentheses.cpp b/test/Sema/parentheses.cpp index 252455dcad49..767416677e00 100644 --- a/test/Sema/parentheses.cpp +++ b/test/Sema/parentheses.cpp @@ -40,6 +40,8 @@ void test(S *s, bool (S::*m_ptr)()) { // expected-note {{place parentheses around the '?:' expression to evaluate it first}} \ // expected-note {{place parentheses around the '+' expression to silence this warning}} + (void)((*s + true) ? "foo" : "bar"); // No warning. + // Don't crash on unusual member call expressions. (void)((s->*m_ptr)() ? "foo" : "bar"); } |