aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/attr-ifunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-ifunc.c')
-rw-r--r--test/Sema/attr-ifunc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/attr-ifunc.c b/test/Sema/attr-ifunc.c
index d177b7168488..8f9c22f84927 100644
--- a/test/Sema/attr-ifunc.c
+++ b/test/Sema/attr-ifunc.c
@@ -39,5 +39,9 @@ void f1() __attribute__((ifunc("f1_ifunc")));
//expected-error@-1 {{definition with same mangled name as another definition}}
void* f1_ifunc() { return 0; }
+void* f6_ifunc(int i);
+void __attribute__((ifunc("f6_ifunc"))) f6() {}
+//expected-error@-1 {{definition 'f6' cannot also be an ifunc}}
+
#endif
#endif