summaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit-errors.c')
-rw-r--r--test/FixIt/fixit-errors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/FixIt/fixit-errors.c b/test/FixIt/fixit-errors.c
index d727adb6fdfbe..1ac9d1c643206 100644
--- a/test/FixIt/fixit-errors.c
+++ b/test/FixIt/fixit-errors.c
@@ -22,6 +22,8 @@ void test_point() {
(void)get_origin->x; // expected-error {{base of member reference is a function; perhaps you meant to call it with no arguments?}}
}
+// These errors require C11.
+#if __STDC_VERSION__ > 199901L
void noreturn_1() _Noreturn; // expected-error {{must precede function declarator}}
void noreturn_1() {
return; // expected-warning {{should not return}}
@@ -29,3 +31,4 @@ void noreturn_1() {
void noreturn_2() _Noreturn { // expected-error {{must precede function declarator}}
return; // expected-warning {{should not return}}
}
+#endif