Fix to build SharedMutexTest on aarch64
[folly.git] / folly / test / MemcpyTest.cpp
index 9c4a141f568db096405e0342dc188b333090bd0b..115fbbdf6e2918d4126ab0253453c3af400e435a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,9 +30,10 @@ void init() {
     dst[i] = static_cast<char>(255 - i);
   }
 }
-}
+} // namespace
 
-TEST(memcpy, zero_len) UBSAN_DISABLE("nonnull-attribute") {
+TEST(memcpy, zero_len)
+    FOLLY_DISABLE_UNDEFINED_BEHAVIOR_SANITIZER("nonnull-attribute") {
   // If length is 0, we shouldn't touch any memory.  So this should
   // not crash.
   char* srcNull = nullptr;