diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/FixIt/fixit-errors.c | |
parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) |
Notes
Diffstat (limited to 'test/FixIt/fixit-errors.c')
-rw-r--r-- | test/FixIt/fixit-errors.c | 3 |
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 |