xref: /aosp_15_r20/external/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
1*58b9f456SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
2*58b9f456SAndroid Build Coastguard Worker //
3*58b9f456SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*58b9f456SAndroid Build Coastguard Worker //
5*58b9f456SAndroid Build Coastguard Worker // This file is dual licensed under the MIT and the University of Illinois Open
6*58b9f456SAndroid Build Coastguard Worker // Source Licenses. See LICENSE.TXT for details.
7*58b9f456SAndroid Build Coastguard Worker //
8*58b9f456SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*58b9f456SAndroid Build Coastguard Worker 
10*58b9f456SAndroid Build Coastguard Worker // <ctgmath>
11*58b9f456SAndroid Build Coastguard Worker 
12*58b9f456SAndroid Build Coastguard Worker #include <ctgmath>
13*58b9f456SAndroid Build Coastguard Worker 
main()14*58b9f456SAndroid Build Coastguard Worker int main()
15*58b9f456SAndroid Build Coastguard Worker {
16*58b9f456SAndroid Build Coastguard Worker     std::complex<double> cd;
17*58b9f456SAndroid Build Coastguard Worker     (void)cd;
18*58b9f456SAndroid Build Coastguard Worker     double x = std::sin(0);
19*58b9f456SAndroid Build Coastguard Worker     ((void)x); // Prevent unused warning
20*58b9f456SAndroid Build Coastguard Worker }
21