Skip to content

Commit 015f2a7

Browse files
committed
edit mode
1 parent 5c5df77 commit 015f2a7

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/file.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
int main()
1+
/*
2+
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3214.pdf
3+
*/
4+
5+
int main(void)
26
{
3-
do
4-
{
5-
int i;
6-
defer i = 1;
7-
if (i) break;
8-
defer i = 3;
9-
}
10-
while(0);
7+
const int * const p;
8+
static_assert(_Generic(p, const int * : 1 ));
9+
static_assert(_Generic(typeof(p), const int * const: 1));
10+
11+
static_assert(_Generic(int, int : 1));
12+
static_assert(_Generic(typeof("abc"), char [4]: 1));
1113
}
12-

src/web/playground.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484

8585
<select id="outtype" style="margin-left:auto;margin-right: 10px; ">
8686
<option value="-2">C89</option>
87-
<!--
87+
8888
<option value="-1">C89 (ANSI C)</option>
8989
<option value="1">C99</option>
9090
<option value="2">C11</option>
9191
<option value="3">C23</option>
9292
<option value="4">C2Y</option>
9393
<option value="100">C2Y++</option>
94-
-->
94+
9595
<option value="0">Preprocess only</option>
9696
<!--<option value="-2">C89 -direct-compilation</option>-->
9797
</select>

vc/cprimev3.vcxproj.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4-
<LocalDebuggerCommandArguments>file.c -target=ir</LocalDebuggerCommandArguments>
4+
<LocalDebuggerCommandArguments>file.c </LocalDebuggerCommandArguments>
55
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
66
<LocalDebuggerWorkingDirectory>$(ProjectDir)../src/</LocalDebuggerWorkingDirectory>
77
</PropertyGroup>

0 commit comments

Comments
 (0)