Skip to content

Commit

Permalink
Fix false positive ODR violation detection
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndDoser committed Aug 9, 2024
1 parent e647abd commit f80116b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gromacs/ramd/tests/ramd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
#include "testutils/testfilemanager.h"
#include "testutils/topologyhelpers.h"


// False positive ODR violation detection
// See https://github.com/google/sanitizers/issues/1017
extern "C" const char* __asan_default_options();
extern "C" const char* __asan_default_options() {
return "detect_odr_violation=1";
}

namespace gmx
{
namespace test
Expand Down

0 comments on commit f80116b

Please sign in to comment.