diff options
Diffstat (limited to 'clang/test/Sema/statements.c')
| -rw-r--r-- | clang/test/Sema/statements.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Sema/statements.c b/clang/test/Sema/statements.c index 3af984ada45..9a71a403700 100644 --- a/clang/test/Sema/statements.c +++ b/clang/test/Sema/statements.c @@ -21,4 +21,9 @@ int test6() { return ({5;}); } void test7() { ({5;}); } // expected-warning {{expression result unused}} // PR3062 -int x[({10;})]; // expected-error {{statement expression not allowed at file scope}} +int test8[({10;})]; // expected-error {{statement expression not allowed at file scope}} + +// PR3912 +void test9(const void *P) { + __builtin_prefetch(P); +} |

