We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 254b4d4 + af79cb9 commit 7bfd36bCopy full SHA for 7bfd36b
regression/goto-instrument/assembly_call_graph_test/main.c
@@ -1,16 +1,10 @@
1
-// This is a hack to make the test pass on windows. The way CBMC on
2
-// windows handles assembly code needs to be fixed.
3
-// CBMC doesn't recognise __asm mfence as a function.
4
-
5
-#ifndef __GNUC__
6
-void __asm_mfence();
7
-#endif
8
9
void* thr(void * arg) {
10
#ifdef __GNUC__
11
-__asm__ __volatile__ ("mfence": : :"memory");
+ // gcc/clang syntax
+ __asm__ __volatile__("mfence" : : : "memory");
12
#else
13
-__asm_mfence();
+ // this is Visual Studio syntax
+ __asm mfence;
14
#endif
15
}
16
0 commit comments