summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/function.c')
-rw-r--r--clang/test/Sema/function.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/function.c b/clang/test/Sema/function.c
index ff78e719bb3..a1d71377960 100644
--- a/clang/test/Sema/function.c
+++ b/clang/test/Sema/function.c
@@ -53,3 +53,8 @@ void f0_3137() {
void f1_3137() {
int (*fp)(void) = g0_3137;
}
+
+void f1static() {
+ static void f2static(int); // expected-error{{function declared in block scope cannot have 'static' storage class}}
+ register void f2register(int); // expected-error{{illegal storage class on function}}
+}
OpenPOWER on IntegriCloud