aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CXX/drs/dr2406.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-12-09 12:53:48 +0400
committerGitHub <noreply@github.com>2023-12-09 12:53:48 +0400
commit6ed9a81f7ebd23f125867dd270785dd0e63043c6 (patch)
treee3e0bc1462db62902454838bb36f97f9d24c7b5a /clang/test/CXX/drs/dr2406.cpp
parent312cb34da6a5529fbfaa1be62f1aa9bbb26ce506 (diff)
downloadllvm-6ed9a81f7ebd23f125867dd270785dd0e63043c6.zip
llvm-6ed9a81f7ebd23f125867dd270785dd0e63043c6.tar.gz
llvm-6ed9a81f7ebd23f125867dd270785dd0e63043c6.tar.bz2
[clang][NFC] Refactor expected directives in C++ DRs 2000-2799 (#74921)
This patch continues the work started with ea5b1ef016d020c37f903d6c7d4f623be975dab8. See that commit and its corresponding PR for details.
Diffstat (limited to 'clang/test/CXX/drs/dr2406.cpp')
-rw-r--r--clang/test/CXX/drs/dr2406.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/clang/test/CXX/drs/dr2406.cpp b/clang/test/CXX/drs/dr2406.cpp
deleted file mode 100644
index 0ab198e..0000000
--- a/clang/test/CXX/drs/dr2406.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// RUN: %clang_cc1 -x c++ %s -verify
-
-// dr2406: 5
-
-void fallthrough(int n) {
- void g(), h(), i();
- switch (n) {
- case 1:
- case 2:
- g();
- [[fallthrough]];
- case 3: // warning on fallthrough discouraged
- do {
- [[fallthrough]]; // expected-error {{fallthrough annotation does not directly precede switch label}}
- } while (false);
- case 6:
- do {
- [[fallthrough]]; // expected-error {{fallthrough annotation does not directly precede switch label}}
- } while (n);
- case 7:
- while (false) {
- [[fallthrough]]; // expected-error {{fallthrough annotation does not directly precede switch label}}
- }
- case 5:
- h();
- case 4: // implementation may warn on fallthrough
- i();
- [[fallthrough]]; // expected-error {{fallthrough annotation does not directly precede switch label}}
- }
-}