diff options
Diffstat (limited to 'clang/test/Sema/exprs.c')
-rw-r--r-- | clang/test/Sema/exprs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c index d6e17ff6ecc..e88f7fc08bc 100644 --- a/clang/test/Sema/exprs.c +++ b/clang/test/Sema/exprs.c @@ -157,3 +157,12 @@ void test21(volatile struct Test21 *ptr) { (test21_help(), *ptr); // expected-error {{incomplete type 'struct Test21' where a complete type is required}} (*ptr, test21_help()); // expected-error {{incomplete type 'struct Test21' where a complete type is required}} } + +// Make sure we do function/array decay. +void test22() { + if ("help") + (void) 0; + + if (test22) + (void) 0; +} |