harness.cpp revision 1.1.1.2
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
11namespace gwp_asan {
12namespace test {
13bool OnlyOnce() {
14  static int x = 0;
15  return !x++;
16}
17} // namespace test
18} // namespace gwp_asan
19