ELF: Have __rela_iplt_{start,end} surround .rela.iplt with --pack-dyn-relocs=android.
[llvm-project.git] / libcxx / test / std / utilities / intseq / intseq.intseq / integer_seq.compile.fail.cpp
blob7575d3f95b9b7c21c66daae3c9a3b5ff676b5e4d
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-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11
11 // <utility>
13 // template<class T, T... I>
14 // struct integer_sequence
15 // {
16 // typedef T type;
18 // static constexpr size_t size() noexcept;
19 // };
21 // This test is a conforming extension. The extension turns undefined behavior
22 // into a compile-time error.
24 #include <utility>
26 #include "test_macros.h"
28 int main(int, char**) {
29 // Should fail to compile, since float is not an integral type
30 using floatmix = std::integer_sequence<float>;
31 floatmix::value_type I;
32 return 0;