summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-noreturn.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-noreturn.c')
-rw-r--r--test/Sema/attr-noreturn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/attr-noreturn.c b/test/Sema/attr-noreturn.c
index b17f9fd..5333a2c 100644
--- a/test/Sema/attr-noreturn.c
+++ b/test/Sema/attr-noreturn.c
@@ -40,3 +40,5 @@ f5 (unsigned long size)
__attribute__((noreturn)) void f(__attribute__((noreturn)) void (*x)(void)) {
x();
}
+
+typedef void (*Fun)(void) __attribute__ ((noreturn(2))); // expected-error {{attribute requires 0 argument(s)}}
OpenPOWER on IntegriCloud