]> granicus.if.org Git - clang/commitdiff
Silencing a redefinition warning that was not germane to the test.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 18 Oct 2017 14:48:33 +0000 (14:48 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 18 Oct 2017 14:48:33 +0000 (14:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316086 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/c2x-fallthrough.c

index 4a0b22edbff4e9040d77f09a2e67b9b186ac3bd9..2fd69c4da0f2551f145e55f2cfd87e9b856d936a 100644 (file)
@@ -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