Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / utilities / ratio / ratio.ratio / ratio1.compile.fail.cpp
blob0841d858dc96c2531d7a4b58614714f5b06eb945
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 // test ratio: The template argument D shall not be zero
11 #include <ratio>
12 #include <cstdint>
14 int main(int, char**)
16 const std::intmax_t t1 = std::ratio<1, 0>::num;
18 return 0;