summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-04-13 20:03:03 +0000
committerNico Weber <nicolasweber@gmx.de>2015-04-13 20:03:03 +0000
commitf2a39a7b4e7028e4eefbffd6165a8e59d4df7c5d (patch)
treee9860c36153c06afef93abee62ef2921d37907e2 /clang/test/SemaCXX
parentb31abb05fbbdbefecc15a5b9f3c054d8a2ce1a9f (diff)
downloadbcm5719-llvm-f2a39a7b4e7028e4eefbffd6165a8e59d4df7c5d.tar.gz
bcm5719-llvm-f2a39a7b4e7028e4eefbffd6165a8e59d4df7c5d.zip
Revert r234786, it contained a bunch of stuff I did not mean to commit.
llvm-svn: 234787
Diffstat (limited to 'clang/test/SemaCXX')
-rw-r--r--clang/test/SemaCXX/switch-implicit-fallthrough.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/switch-implicit-fallthrough.cpp b/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
index a547dc6d9f8..0bc43cdbd45 100644
--- a/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
+++ b/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough %s
+
int fallthrough(int n) {
switch (n / 10) {
if (n - 1) {
@@ -299,8 +300,3 @@ int fallthrough_targets(int n) {
}
return n;
}
-
-[[clang::fallthrough]] int a; // expected-error {{'fallthrough' attribute only applies to empty statements}}
-[[clang::fallthrough]] int f(); // expected-error {{'fallthrough' attribute only applies to empty statements}}
-void g([[clang::fallthrough]] int p); // expected-error {{'fallthrough' attribute only applies to empty statements}}
-struct [[clang::fallthrough]] S; // expected-error {{'fallthrough' attribute only applies to empty statements}}
OpenPOWER on IntegriCloud