From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/mixed-labels-and-declarations.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 devdocs/gcc~13/mixed-labels-and-declarations.html (limited to 'devdocs/gcc~13/mixed-labels-and-declarations.html') diff --git a/devdocs/gcc~13/mixed-labels-and-declarations.html b/devdocs/gcc~13/mixed-labels-and-declarations.html new file mode 100644 index 00000000..14875f09 --- /dev/null +++ b/devdocs/gcc~13/mixed-labels-and-declarations.html @@ -0,0 +1,10 @@ +

6.32 Mixed Declarations, Labels and Code

ISO C99 and ISO C++ allow declarations and code to be freely mixed within compound statements. ISO C2X allows labels to be placed before declarations and at the end of a compound statement. As an extension, GNU C also allows all this in C90 mode. For example, you could do:

int i;
+/*  */
+i++;
+int j = i + 2;
+

Each identifier is visible from where it is declared until the end of the enclosing block.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Mixed-Labels-and-Declarations.html +

+
-- cgit v1.2.3