brintos

brintos / llvm-project-archived public Read only

0
0
Text · 885 B · a366e8e Raw
29 lines · cpp
1//===----------------------------------------------------------------------===//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-exception6//7//===----------------------------------------------------------------------===//8 9// Test that cmath builds with -fdelayed-template-parsing.10// This is a regression test for an issue introduced in ae22f0b24231,11// where Clang's limited support for -fdelayed-template-parsing would12// choke on <cmath>.13 14// REQUIRES: fdelayed-template-parsing15// ADDITIONAL_COMPILE_FLAGS: -fdelayed-template-parsing16 17#include <cmath>18#include <cassert>19 20int main(int, char**) {21  assert(std::isfinite(1.0));22  assert(!std::isinf(1.0));23  assert(!std::isnan(1.0));24 25  return 0;26}27 28using namespace std; // on purpose29