source: tests/limits.cfa @ 66286aa

Last change on this file since 66286aa was 53692b3, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

second attempt to fix compile-only pragma message that gcc-10/11 quote

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[3e8fb3b]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
[dc8511c]7// limits.cfa --
[3e8fb3b]8//
9// Author           : Peter A. Buhr
10// Created On       : Tue May 10 20:44:20 2016
11// Last Modified By : Peter A. Buhr
[53692b3]12// Last Modified On : Sat Jun  5 10:07:32 2021
13// Update Count     : 11
[ebcd82b]14//
[3e8fb3b]15
[6fbe9a5]16// Note: For testing the ability to load the constants defined in libcfa/src/limits.cfa,
17// see discussion in test const-init.
18
[73abe95]19#include <limits.hfa>
[d3b7937]20
21// Integral Constants
22
[2701c91]23signed char m = MIN;
24unsigned char m = MIN;
[3e8fb3b]25short int m = MIN;
[2701c91]26unsigned short int m = MIN;
[3e8fb3b]27int m = MIN;
[2701c91]28unsigned int m = MIN;
[3e8fb3b]29long int m = MIN;
[2701c91]30unsigned long int m = MIN;
[3e8fb3b]31long long int m = MIN;
[2701c91]32unsigned long long int m = MIN;
[d3b7937]33
[2701c91]34signed char M = MAX;
35unsigned char M = MAX;
[3e8fb3b]36short int M = MAX;
37unsigned short int M = MAX;
38int M = MAX;
39unsigned int M = MAX;
40long int M = MAX;
41unsigned long int M = MAX;
42long long int M = MAX;
43unsigned long long int M = MAX;
[d3b7937]44
45// Floating-Point Constants
46
[2701c91]47float m = MIN;
48double m = MIN;
49long double m = MIN;
50float _Complex m = MIN;
51double _Complex m = MIN;
52long double _Complex m = MIN;
53
54float M = MAX;
55double M = MAX;
56long double M = MAX;
57float _Complex M = MAX;
58double _Complex M = MAX;
59long double _Complex M = MAX;
60
[3e8fb3b]61float pi = PI;
62float pi_2 = PI_2;
63float pi_4 = PI_4;
64float _1_pi = _1_PI;
65float _2_pi = _2_PI;
66float _2_sqrt_pi = _2_SQRT_PI;
67
68double pi = PI;
69double pi_2 = PI_2;
70double pi_4 = PI_4;
71double _1_pi = _1_PI;
72double _2_pi = _2_PI;
73double _2_SQRT_pi = _2_SQRT_PI;
74
75long double pi = PI;
76long double pi_2 = PI_2;
77long double pi_4 = PI_4;
78long double _1_pi = _1_PI;
79long double _2_pi = _2_PI;
80long double _2_sqrt_pi = _2_SQRT_PI;
81
[2701c91]82float _Complex pi = PI;
83float _Complex pi_2 = PI_2;
84float _Complex pi_4 = PI_4;
85float _Complex _1_pi = _1_PI;
86float _Complex _2_pi = _2_PI;
87float _Complex _2_sqrt_pi = _2_SQRT_PI;
88
89double _Complex pi = PI;
90double _Complex pi_2 = PI_2;
91double _Complex pi_4 = PI_4;
92double _Complex _1_pi = _1_PI;
93double _Complex _2_pi = _2_PI;
94double _Complex _2_sqrt_pi = _2_SQRT_PI;
95
96long double _Complex pi = PI;
97long double _Complex pi_2 = PI_2;
98long double _Complex pi_4 = PI_4;
99long double _Complex _1_pi = _1_PI;
100long double _Complex _2_pi = _2_PI;
101long double _Complex _2_sqrt_pi = _2_SQRT_PI;
[3e8fb3b]102
103float e = E;
104float log2_e = LOG2_E;
105float log10_e = LOG10_E;
106float ln_2 = LN_2;
107float ln_10 = LN_10;
108float sqrt_2 = SQRT_2;
109float _1_sqrt_2 = _1_SQRT_2;
110
111double e = E;
112double log2_e = LOG2_E;
113double log10_e = LOG10_E;
114double ln_2 = LN_2;
115double ln_10 = LN_10;
116double sqrt_2 = SQRT_2;
117double _1_sqrt_2 = _1_SQRT_2;
118
119long double e = E;
120long double log2_e = LOG2_E;
121long double log10_e = LOG10_E;
122long double ln_2 = LN_2;
123long double ln_10 = LN_10;
124long double sqrt_2 = SQRT_2;
125long double _1_sqrt_2 = _1_SQRT_2;
126
[2701c91]127float _Complex e = E;
128float _Complex log2_e = LOG2_E;
129float _Complex log10_e = LOG10_E;
130float _Complex ln_2 = LN_2;
131float _Complex ln_10 = LN_10;
132float _Complex sqrt_2 = SQRT_2;
133float _Complex _1_sqrt_2 = _1_SQRT_2;
134
135double _Complex e = E;
136double _Complex log2_e = LOG2_E;
137double _Complex log10_e = LOG10_E;
138double _Complex ln_2 = LN_2;
139double _Complex ln_10 = LN_10;
140double _Complex sqrt_2 = SQRT_2;
141double _Complex _1_sqrt_2 = _1_SQRT_2;
142
143long double _Complex e = E;
144long double _Complex log2_e = LOG2_E;
145long double _Complex log10_e = LOG10_E;
146long double _Complex ln_2 = LN_2;
147long double _Complex ln_10 = LN_10;
148long double _Complex sqrt_2 = SQRT_2;
149long double _Complex _1_sqrt_2 = _1_SQRT_2;
[d3b7937]150
[ebcd82b]151int main(int argc, char const *argv[]) {
[53692b3]152    #pragma GCC warning "Compiled"                      // force non-empty .expect file, NO TABS!!!
[ebcd82b]153}
154
[d3b7937]155// Local Variables: //
156// tab-width: 4 //
[dc8511c]157// compile-command: "cfa limits.cfa" //
[d3b7937]158// End: //
Note: See TracBrowser for help on using the repository browser.