aaron.ballman added a comment.

Can you also add a release note about the change?



================
Comment at: clang/test/Sema/warn-mixed-decls-code.c:1-3
+// RUN: %clang_cc1 -std=c89 -fsyntax-only -verify -Wall -Wno-comment -DSILENCE 
%s
+// RUN: %clang_cc1 -std=c99 -fsyntax-only -verify -Wall -pedantic -DSILENCE %s
+// RUN: %clang_cc1 -std=c11 -fsyntax-only -verify -Wall -pedantic -DSILENCE %s
----------------



================
Comment at: clang/test/Sema/warn-mixed-decls-code.c:7
+// RUN: %clang_cc1 -std=c99 -fsyntax-only -verify 
-Wdeclaration-after-statement %s
+// RUN: %clang_cc1 -std=c11 -fsyntax-only -verify 
-Wdeclaration-after-statement %s
+
----------------



================
Comment at: clang/test/Sema/warn-mixed-decls-code.c:9-11
+#ifdef SILENCE
+  // expected-no-diagnostics
+#endif
----------------



================
Comment at: clang/test/Sema/warn-mixed-decls-code.c:18-21
+  int b;
+#ifndef SILENCE
+  // expected-warning@-2 {{mixing declarations and code}}
+#endif
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117232/new/

https://reviews.llvm.org/D117232

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to