From: Aaron Ballman Date: Wed, 18 Oct 2017 14:48:33 +0000 (+0000) Subject: Silencing a redefinition warning that was not germane to the test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58199aaa59e063e6386d5672178af1bfce184f2b;p=clang Silencing a redefinition warning that was not germane to the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316086 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/c2x-fallthrough.c b/test/Sema/c2x-fallthrough.c index 4a0b22edbf..2fd69c4da0 100644 --- a/test/Sema/c2x-fallthrough.c +++ b/test/Sema/c2x-fallthrough.c @@ -43,9 +43,9 @@ void f(int n) { } } -[[fallthrough]] typedef int n; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} -typedef int [[fallthrough]] n; // expected-error {{'fallthrough' attribute cannot be applied to types}} -typedef int n [[fallthrough]]; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} +[[fallthrough]] typedef int n1; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} +typedef int [[fallthrough]] n2; // expected-error {{'fallthrough' attribute cannot be applied to types}} +typedef int n3 [[fallthrough]]; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} enum [[fallthrough]] E { // expected-error {{'fallthrough' attribute cannot be applied to a declaration}} One