Mercurial > hg > CbC > CbC_llvm
diff clang/test/Sema/c2x-fallthrough.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/clang/test/Sema/c2x-fallthrough.c Mon May 25 11:55:54 2020 +0900 +++ b/clang/test/Sema/c2x-fallthrough.c Tue Jun 08 06:07:14 2021 +0900 @@ -57,7 +57,7 @@ [[fallthrough]] // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} void g(void) { [[fallthrough]] int n; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} - [[fallthrough]] ++n; // expected-error-re {{{{^}}fallthrough attribute is only allowed on empty statements}} + [[fallthrough]] ++n; // expected-error {{'fallthrough' attribute only applies to empty statements}} switch (n) { // FIXME: This should be an error. @@ -65,7 +65,7 @@ return; case 0: - [[fallthrough, fallthrough]]; // expected-error {{multiple times}} + [[fallthrough, fallthrough]]; // ok case 1: [[fallthrough(0)]]; // expected-error {{argument list}} case 2: