1// Copyright 2018 The Fuchsia Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// This testcase is mainly a compilation test: Do we get undefined symbols 6// when we link C code compiled with -O0? The semantics of inline functions 7// are different between C and C++, and with C at -O0 we need to verify a 8// real copy of the functions exist (unless they get marked __ALWAYS_INLINE). 9 10#if defined(__GNUC__) && !defined(__clang__) 11#pragma GCC optimize("O0") 12#endif 13#ifdef __clang__ 14#pragma clang optimize off 15#endif 16 17#define NO_OPTIM 18#include "event_tests_common.h" 19 20