File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments