1 //===-- harness.cpp ---------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "gwp_asan/tests/harness.h" 10 11 namespace gwp_asan { 12 namespace test { 13 bool OnlyOnce() { 14 static int x = 0; 15 return !x++; 16 } 17 } // namespace test 18 } // namespace gwp_asan 19