1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // test that cmath builds with -fdelayed-template-parsing 11 12 // REQUIRES: fdelayed-template-parsing 13 14 // RUN: %build -fdelayed-template-parsing 15 // RUN: %run 16 17 #include <cmath> 18 #include <cassert> 19 20 #include "test_macros.h" 21 22 int main() { 23 assert(std::isfinite(1.0)); 24 assert(!std::isinf(1.0)); 25 assert(!std::isnan(1.0)); 26 } 27 28 using namespace std; 29