File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ you may need to disable inlining (just use ``-O1``) and tail call elimination
49
49
}
50
50
51
51
# Compile and link
52
- % clang -O1 -g -fsanitize=address -fno-omit-frame-pointer example_UseAfterFree.cc
52
+ % clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer example_UseAfterFree.cc
53
53
54
54
or:
55
55
56
56
.. code-block :: console
57
57
58
58
# Compile
59
- % clang -O1 -g -fsanitize=address -fno-omit-frame-pointer -c example_UseAfterFree.cc
59
+ % clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer -c example_UseAfterFree.cc
60
60
# Link
61
- % clang -g -fsanitize=address example_UseAfterFree.o
61
+ % clang++ -g -fsanitize=address example_UseAfterFree.o
62
62
63
63
If a bug is detected, the program will print an error message to stderr and
64
64
exit with a non-zero exit code. AddressSanitizer exits on the first detected error.
You can’t perform that action at this time.
0 commit comments