libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

literals1.fail.cpp (574B)


      1 // -*- C++ -*-
      2 //===----------------------------------------------------------------------===//
      3 //
      4 //                     The LLVM Compiler Infrastructure
      5 //
      6 // This file is dual licensed under the MIT and the University of Illinois Open
      7 // Source Licenses. See LICENSE.TXT for details.
      8 //
      9 //===----------------------------------------------------------------------===//
     10 
     11 // UNSUPPORTED: c++98, c++03, c++11
     12 #include <complex>
     13 #include <cassert>
     14 
     15 #include "test_macros.h"
     16 
     17 int main()
     18 {
     19     std::complex<float> foo  = 1.0if;  // should fail w/conversion operator not found
     20 }