Author: aaronballman Date: Wed Oct 18 07:48:33 2017 New Revision: 316086 URL: http://llvm.org/viewvc/llvm-project?rev=316086&view=rev Log: Silencing a redefinition warning that was not germane to the test.
Modified: cfe/trunk/test/Sema/c2x-fallthrough.c Modified: cfe/trunk/test/Sema/c2x-fallthrough.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/c2x-fallthrough.c?rev=316086&r1=316085&r2=316086&view=diff ============================================================================== --- cfe/trunk/test/Sema/c2x-fallthrough.c (original) +++ cfe/trunk/test/Sema/c2x-fallthrough.c Wed Oct 18 07:48:33 2017 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits