1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // UNSUPPORTED: c++03, c++11
11 #include <complex>
12 #include <cassert>
13 
14 #include "test_macros.h"
15 
main(int,char **)16 int main(int, char**)
17 {
18     std::complex<float> foo  = 1.0if;  // should fail w/conversion operator not found
19 
20   return 0;
21 }
22