diff options
Diffstat (limited to 'clang/test/SemaCXX/condition.cpp')
| -rw-r--r-- | clang/test/SemaCXX/condition.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/condition.cpp b/clang/test/SemaCXX/condition.cpp index 21671fab3c0..7854d51bfd7 100644 --- a/clang/test/SemaCXX/condition.cpp +++ b/clang/test/SemaCXX/condition.cpp @@ -52,3 +52,7 @@ void test3() { if (test3) // expected-warning {{address of function 'test3' will always evaluate to 'true'}} (void) 0; } + +void test4(bool (&x)(void)) { + while (x); +} |

