We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d20a12e commit 00a2cecCopy full SHA for 00a2cec
regression/goto-gcc/dev_null1/main.c
@@ -0,0 +1,9 @@
1
+void gcc_fails(void)
2
+{
3
+ asm volatile ( ".if ((1 > 0) < 0); .error \"this is gcc\";.endif" );
4
+}
5
+
6
+void clang_fails(void)
7
8
+ asm volatile ( ".if ((1 > 0) > 0); .error \"this is clang\";.endif" );
9
regression/goto-gcc/dev_null1/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+-o /dev/null
+^EXIT=1$
+^SIGNAL=0$
+--
+^warning: ignoring
+^CONVERSION ERROR$
src/goto-cc/gcc_mode.cpp
@@ -914,7 +914,7 @@ int gcc_modet::gcc_hybrid_binary(compilet &compiler)
914
if(output_files.empty() ||
915
(output_files.size()==1 &&
916
output_files.front()=="/dev/null"))
917
- return EX_OK;
+ return run_gcc(compiler);
918
919
debug() << "Running " << native_tool_name
920
<< " to generate hybrid binary" << eom;
0 commit comments